android - 是否有解决方法(许可)让 friendPickerFragment 显示所有 friend ?

标签 android facebook

我意识到我在 Why is my friend picker fragment empty? 上遇到的问题 fragment 是否运行良好,只是因为我使用的是 facebook 图表版本 2.0,它只显示当前正在使用该应用程序的 friend (没有,只有我)。是否有解决方法或其他一些权限可用于让 fragment 检索所有 friend ,而不仅仅是使用该应用程序的 friend ?

最佳答案

看看https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids

如果您使用的是 Graph API v2.0,端点 /me/friends 将始终只显示也在使用该应用程序的 friend 。

引用:

There are two key use cases where apps need access to non-app friends: tagging and inviting. In v2.0, we've added the Taggable Friends API and the Invitable Friends API to support these flows.

链接:

如果您“只是”想显示也在使用该应用程序的共同 friend ,您可以使用

/{user_id}.context/mutual_friends

... user_friends permission is required to view the mutual friends of other friends using the app.

看看我在 Fetch Facebook Mutual friends between me and another User 上的回答

关于android - 是否有解决方法(许可)让 friendPickerFragment 显示所有 friend ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25499560/

相关文章:

android - 如何从 ACTION_SEND 获取 URL?

java - ListView、RecyclerView 还是..?

android - 触发警报时启动 Activity

ios - FB.login()phonegap facebook 插件出错

Facebook 分享者,发表评论?

facebook - Codeigniter Facebook 登录失败

通知服务中的android内存泄漏

c# - 在 Unity3D 中无延迟地截取屏幕截图

元标记中的 PHP 不起作用?

php - 多平台 - 在 Facebook 上发布到好友时间线并发送邀请