-1

I have created a facebook application a month before and the Graph API Explorer returns empty array from the query me/friends even there are 5 people allowing the app. It should return the friends using the app isn't it? How can I retrieve the list of friends using the app?

Agnosco
  • 155
  • 2
  • 11
  • Perheps its a privacy setting in your facebook account that forbids the app from returning the list? – Arko Elsenaar Aug 28 '14 at 08:04
  • And you're sure those 5 people are your friends? And you request the `user_friends`permission? – Tobi Aug 28 '14 at 08:14
  • yes they are in my friend list and user_friends permission is approved. And the app that I created a year before returns the friends using app if I select version 2.1. So I'm wondering if it is due to the change in userid in old and new app versions. As I can see the userid is different according to app in new version but in older version the userid is the orginal one – Agnosco Aug 28 '14 at 08:28

1 Answers1

0

You need user_friends permission : https://developers.facebook.com/docs/graph-api/reference/v2.1/user/friends

  • It is a default permission. Isn't it? And it shows under the approved items list in app – Agnosco Aug 28 '14 at 08:23
  • 3
    But you still need to request is during login! – Tobi Aug 28 '14 at 08:25
  • 1
    This is not a default permission for newly created applications. Have a look to this question, it might help : http://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-who-also-use-m – Marie T. Aug 28 '14 at 10:34