retrieve full list of friends using facebook API [duplicate]

As mentioned in the Graph API v2.0 upgrading guide (https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids)

/me/friends returns the user’s friends who are also using your app 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
.

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.

After a person has logged in with v2.0 of Facebook Login, calling
/v1.0/me/friends and/v2.0/me/friends` will both result in the v2.0
behaviour – both calls will return the set of the person’s friends who
also use the app.

So, in v2.0 you’ll only be able to get all friends via the /me/taggable_friends (https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends) endpoint, which only contains the fields id, name, picture, and only can be used after a review of your app by Facebook.

Leave a Comment