1

i used to create Facebook APP, checked to get friends list using Access token from Graph API Explorer, it always returning empty data

Maniya Krishnan
  • 21
  • 1
  • 1
  • 3
  • 4
    Duplicated, https://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-who-also-use-m – 林果皞 May 23 '14 at 07:45
  • 2
    Possible duplicate of [Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app](http://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-who-also-u) – ethesx Apr 14 '17 at 00:44

5 Answers5

14

Check those Links, Facebook made a big step forward towards privacy. /me/friends only returns friends who authorized the App too, that´s why the result is empty.

andyrandy
  • 72,880
  • 8
  • 113
  • 130
3

With the introduction of the Facebook Graph API 2.0, access a user’s friends list was removed and limited to just friends who use the same application. However, Facebook added two new APIs to allow retrieval of Friend names (and indirectly a friend count). The two new APIs are taggable_friends and invitable_friends.

E. Fortes
  • 1,338
  • 12
  • 12
  • This sounds good, except that if the user has special privacy settings, the list will still be incomplete. – Shailen May 24 '15 at 20:39
0

In v2.0 of the Graph API, calling /me/friends returns the person's friends who also use the app.

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

When I login with ID my friend and retry send request "me/friends" again. It return ID my Facebook to me. If you need test, you can use this way.

Community
  • 1
  • 1
Kakashi
  • 534
  • 11
  • 16
-2

I have currently find this one useful, just posting a snippet:

  FB.ui({method: 'apprequests',
      message: 'Please sign up .',
      filters: ['app_non_users']
    }, function(response){
        console.log("Response from app requests:"+response);
    });

Reference url https://developers.facebook.com/docs/games/requests/v2.1#params

java.quaso
  • 11
  • 2
  • 7
-5

Facebook was updated with version 2.0,

if you want to use Graph API me/friends/, you need to submit your app for review.

Steps to do it:

goto your Apps --> status and Review ---> start a Submission.

then you need to provide your information for review with screen shot.

Submit Items for Approval

Some Facebook integrations require approval before public usage.
Before submitting your app for review, please consult our Platform Policy and Review Guidelines.
Naveen N
  • 82
  • 3
  • 2
    why is this set as correct answer? you don´t need to submit your app for review for /me/friends. user_friends is one of the permissions you do NOT need to get reviewed. check out my answer, everything you need to know is in there. – andyrandy Oct 29 '14 at 10:51