使用 facebook 2.0 获取好友列表 [英] fetching list of friends using facebook 2.0

查看:32
本文介绍了使用 facebook 2.0 获取好友列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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 have seen 2 permissions

  • read_friendlist
  • user_friends

他们有什么办法可以获取好友列表吗?那些从 facebook 上获得朋友的小部件呢,他们会下架吗?

Is their any way to fetch list of friends? and what about the widgets that get friends from facebook, will they go down?

推荐答案

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

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.

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

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

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

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.

read_friendlist perm 不会为您提供用户好友列表,而是为您提供用户好友列表列表,可用于在将故事发布到 Facebook 时构建自定义隐私选择器.

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.

这篇关于使用 facebook 2.0 获取好友列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆