Talk:Sample FQL Queries

From Facebook Developers Wiki

Jump to: navigation, search

[edit] Query for friends who've added the current app

Is this the best why to query for a list of the uid's of all my friends who have the current application installed?

 SELECT uid FROM user WHERE uid IN (
    SELECT uid2 FROM friend WHERE uid1=12933936
        ) AND has_added_app=1

Thanks --Tony 06:23, 13 June 2008 (PDT)