有没有工作(许可),以获得friendPickerFragment显示所有的朋友? [英] Is there a work around(permission) to get friendPickerFragment to show all friends?
问题描述
我意识到我在为什么我的朋友选择器片段空吗?是片段运行良好,它刚刚使用的是facebook图形版本2.0,它只显示正在使用该应用程序的朋友(没有,只是我)。有没有解决方法或其他权限,您可以使用该片段检索所有的朋友,而不仅仅是使用该应用程序的那些?
p>看看 https://developers.facebook.com/docs/apps/升级#upgrade_v2_0_user_ids
如果您使用Graph API v2.0,端点 / me / friends
将永远只显示也使用该应用的朋友。
引用:
应用程序需要访问非应用程序的朋友有两个关键用例:标记和邀请。在v2.0中,我们添加了Taggable Friends API和Invitable Friends API以支持这些流程。
链接: p>
- 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/
如果您只是想要显示共同的朋友也可以使用该应用程序,您可以使用
/ {user_id} .context / mutual_friends
...
user_friends
需要许可查看使用该应用的其他朋友的共同朋友。
看看在我的答复在获取我之间的互相朋友和另一个用户
I realized that the problem I was having on Why is my friend picker fragment empty? was that the fragment run fine, its just since i am using facebook graph version 2.0, it only shows the friends that are currently using the app(none, just me). Is there a workaround or some other permission you can use to have the fragment retrieve all friends, not just the ones using the app?
Have a look at https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids
If you're using Graph API v2.0, the endpoint /me/friends
will always only show the friends which are also using the app.
Quote:
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.
Links:
- 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/
If you "just" want to show mutual friends which also use the app, you can use the
/{user_id}.context/mutual_friends
...
user_friends
permission is required to view the mutual friends of other friends using the app.
Have a look at my answer at Fetch Facebook Mutual friends between me and another User
这篇关于有没有工作(许可),以获得friendPickerFragment显示所有的朋友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!