Frank
Frank

Reputation: 3143

How can I determine which friends of the currently logged in user are also using my app?

The Graph API makes it easy for me to determine who the friends of the current user are. I have two questions:

  1. Is it possible, using the Graph API, to determine the list of users for the currently authenticated application?
  2. Is it possible to determine the friends of the current user who are also users of my application (the intersection of my app's users and the current user's friends)? Is this possible using FQL?

Upvotes: 3

Views: 428

Answers (1)

ifaour
ifaour

Reputation: 38125

  1. No, This is not possible. Refer to this answer.
  2. There's a rest method called friends.getAppUsers for this. Or you could use FQL:

    SELECT uid,name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()) AND is_app_user=1
    

Upvotes: 7

Related Questions