How to find only facebook app installed friends? [

2019-05-15 06:18发布

I am using an app on facebook, I want to find out list which includes only friends who installed same app in there facebook rather than the whole friend list. I am using graph api call

1条回答
Root(大扎)
2楼-- · 2019-05-15 07:10

Making a Graph API call to:

me/friends?fields=installed,name

This will give you the entire list of friends for the current user, however, it will include an additional field called installed. If this is set to true, it means the friend has installed the app. You'll have to go through the list and filter out anyone who has "installed": true

Alternatively, you can use the following FQL query:

SELECT uid, name FROM user
WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
AND is_app_user = 1
查看更多
登录 后发表回答