Search code examples
iosjsonfacebook-graph-apisbjson

using Facebook Graph API how can i access friends names


I am working on a project which requires to display friendlist of my facebook account. When I am assigning me/friends it gives me the number of count of the friends I have in my account, like, {

"friends": { "data": [ ], "summary": { "total_count": 122 } }, "id": "290538796816510" }

I am not getting any names in "data". while, on the other side when I am using "me/friendlists" it only gives me the names of the lists like "close friends", "family", etc. Can anyone tell me how do I get the names of my friends.


Solution

  • In their last updates, Facebook decided to not allow apps to access the full friend list. Now an app can only see the friends that are already using that app, not the others.

    It was a problem for many people, myself included, but it seems that Facebook intends it to work like this. Here is more info:

    Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app