简体   繁体   中英

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.

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)?

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. 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.

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.

You can find more information here: 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 . 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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