简体   繁体   English

Facebook SDK,吸引朋友

[英]Facebook SDK, fetching friends

I am currently building an app, and I need to fetch all the friends of a user, in order to display them to that specific user (public picture + name). 我目前正在构建一个应用程序,我需要获取用户的所有朋友,以便将其显示给该特定用户(公共图片+名称)。

I have tried to implement the taggable_friend into my app in order to do so, but Facebook is not giving me the permission to use it as they say it should only be used to tag friends in stories. 我已经尝试将taggable_friend实现到我的应用程序中,但Facebook并没有授予我使用它的权限,因为他们说它应该只用于标记故事中的朋友。

Also, my question is, how apps like "Tinder" and "Hot or Not" do to get access to my entire friend list (even the one not using the app)? 另外,我的问题是,像“Tinder”和“Hot or Not”这样的应用程序如何访问我的整个朋友列表(即使是不使用该应用程序的人)?

And in the case of "Hot or Not", they even display my friends not using the app so that if I like them, I can invite them to join. 在“热或不热”的情况下,他们甚至会显示我的朋友没有使用该应用程序,所以如果我喜欢它们,我可以邀请他们加入。

In the v2.0 release on the Facebook Graph API, the ability to access a person's friends was changed in two ways. 在Facebook Graph API的v2.0版本中,以两种方式更改了访问某人的朋友的能力。 The first was via a new permission: 第一个是通过新的许可:

Friend list is no longer part of the default permission set and has its own permission: Asking for access to a person's friend list is now a separate permission that your app must request. 好友列表不再是默认权限集的一部分,并且拥有自己的权限:要求访问某人的好友列表现在是您的应用必须请求的单独权限。 The new permission is called user_friends. 新权限称为user_friends。

The second affected which people are returned when requesting the list of friends: 第二个影响了在请求朋友列表时返回的人:

Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app. 朋友列表现在只返回同时使用您的应用的朋友:通过/ me / friends端点返回的朋友列表现在仅限于已授权您的应用的朋友列表。

You can find more information here: https://developers.facebook.com/docs/apps/changelog#v2_0 您可以在此处找到更多信息: https//developers.facebook.com/docs/apps/changelog#v2_0

I tested a lot Facebook API this year, and Facebook won't let you see your friends, for security matters, they only let you see the ones registered in the same app . 我今年测试了很多Facebook API,Facebook不会让你看到你的朋友,出于安全问题, 他们只让你看到在同一个应用程序中注册的那些 If you are seeing the ones that are not, probably Tinder or whatever app is not using the latest version, v1.0 i guess, that will expire on April 30th, 2015. 如果您看到那些不是,可能是Tinder或任何应用程序没有使用最新版本,我猜,v1.0将于2015年4月30日到期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM