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:
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