我意识到我在 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.
链接:
- https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/
- https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends/
如果您“只是”想显示也在使用该应用程序的共同 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/