0

I am reading through the docs and other questions on Stackoverflow. Am I getting this right that it is actually impossible to retrieve the whole friendlist of the user? The permissions user_friends only refers to friends that have previously logged into the same app with Facebook.

I am wondering if I just oversee the solution or if it is indeed impossible to get access to a user's friends because there is no API that would allow to do so?

nburk
  • 22,409
  • 18
  • 87
  • 132

2 Answers2

2

Since graph API v2.0, this is no longer possible:

See

This will only return any friends who have used (via Facebook Login) the app making the request.

In v2.0, the friends API endpoint returns the list of a person's friends who are also using your app. In v1.0, the response included all of a person's friends.

Tobi
  • 31,405
  • 8
  • 58
  • 90
  • ok, that's was I was afraid of. thanks for the confirmation and the links to the docs though, that'll help explain it to the customer ;) – nburk Dec 05 '14 at 09:20
  • You might have a look at https://developers.facebook.com/docs/graph-api/reference/user/taggable_friends and https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/ but they both do probably not support your original use case. – Tobi Dec 05 '14 at 09:26
  • I already checked out the `invitable_friends` API, this would do it for me but unfortunately this one is **only available if your FB app also available on _canvas_**. thanks anyway! – nburk Dec 05 '14 at 09:43
1

As Tobi says, in V2.0 this is no longer possible.

But, if you want to get only name and profile picture, then its possible!
Check taggable_friends

Note that The id that returns this API call isn't unique, it may change for every request for same user, so you can't use that field to identify user, you can use it ONLY for tagging.

Community
  • 1
  • 1
arturdev
  • 10,884
  • 2
  • 39
  • 67