开发者

Facebook Graph API - running into field query/search

开发者 https://www.devze.com 2023-03-13 02:19 出处:网络
How do I return Facebook IDs of my friends that use a certain application? If you go to https://www.facebook.com/browse/?type=friends_using_app&app_id=2439131959 you\'ll see a list of your friend

How do I return Facebook IDs of my friends that use a certain application?

If you go to https://www.facebook.com/browse/?type=friends_using_app&app_id=2439131959 you'll see a list of your friends who have this application (on the far right)

I'm trying开发者_如何学编程 to either read the connections or search for the connections based on the social graph using the graph api.

https://graph.facebook.com/search?type=friends_using_app&app_id=6628568379 doesn't work

https://graph.facebook.com/?ids=?type=friends_using_app&app_id=6628568379 doesn't work either


Right now you have to use FQL: it can not be done with the graph API in its present state. Try this FQL:

SELECT uid FROM user WHERE is_app_user = 1 AND uid IN (SELECT uid2 FROM friend WHERE uid1 = {userid})

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号