2

有没有办法使用 facebook 2.0 API 获取朋友列表?我正在从 API 中读取此升级,现在似乎很难获取朋友,但我已经看到了 2 个权限

  • read_friendlist
  • 用户朋友

他们有什么方法可以获取朋友列表吗?那些从 facebook 获得朋友的小部件呢,他们会倒闭吗?

4

2 回答 2

3

在 v2.0 的 Graph API 中/me/friends返回用户的也使用该应用程序的朋友。您需要获得 user_friends 权限才能获得甚至使用应用程序的朋友。

v2.0没有办法获取完整用户的好友。

但是,您可以使用https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends API 或https://developers.facebook.com/docs/graph-api/参考/v2.0/user/taggable_friends API 来获取所有用户的朋友,这些朋友可以用于标记和邀请。

read_friendlist烫发不会为您提供用户朋友的列表,它会为您提供用户的朋友列表,这些列表可用于在将故事发布到 Facebook 时构建自定义隐私选择器。

于 2014-05-03T01:44:14.043 回答
1

自 2014 年 4 月 30 日起,您只能检索也使用该应用程序的朋友。

但是,“游戏”类别中的应用程序有特定的方法来邀请朋友。 https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/

于 2014-05-02T20:11:19.103 回答