Rajan Rawal
Rajan Rawal

Reputation: 6313

Facebook Graph API 2.2 : Returns empty friends list

With latest graph API 2.2 I have taken all care for calling me/friends mentioned here api but I am still getting blank list of friends.

I took care, that two of my friends with whom i am already a friend. They logged in to this app via facebook login. I also check the visibility section and ensured it is public. Though the app is always returning me a empty friend list and I'm stuck how to move ahead.

Upvotes: 0

Views: 886

Answers (1)

andyrandy
andyrandy

Reputation: 74014

If the friend list is empty, there are usually 2 reasons why:

  • None of your friends authorized the App (in your case, this shouldn´t be it)
  • You didn´t authorize with the user_friends permission (every friend needs to authorize with that permission too)

user_friends is only approved, but you still need to ask for it in the login process.

Upvotes: 1

Related Questions