fetching list of friends using facebook 2.0

后端 未结 2 1062
时光说笑
时光说笑 2021-01-14 20:43

is there any way to fetch list of friends using facebook 2.0 API? I was reading this upgrade from the API and it seems it is quite difficult to fetch the friends now, but I

相关标签:
2条回答
  • 2021-01-14 21:26

    In v2.0 of the Graph API /me/friends returns the user's friends who also use the app. You need to be granted the user_friends permission in order to get even app-using friends.

    There is no way in v2.0 to get the full user's friends.

    However, you may use the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends API or the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends APIs to get all the user's friends with tokens than can be used for tagging and inviting.

    the read_friendlist perm doesn't get you a list of the user's friends, it gets you the list of a user's friendlists which may be used to build a custom privacy selector when publishing stories to Facebook.

    0 讨论(0)
  • 2021-01-14 21:29

    As of 4/30/2014, you can only retrieve the friends who also use the app.

    There are, however, specific methods for apps in the 'Game' category for inviting friends. https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/

    0 讨论(0)
提交回复
热议问题