How to find only facebook app installed friends? [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-22 10:52:52

问题


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


来源:https://stackoverflow.com/questions/15832735/how-to-find-only-facebook-app-installed-friends

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!