E
E
ekorolev2014-06-09 12:21:13
Facebook
ekorolev, 2014-06-09 12:21:13

Facebook API, FQL: Always empty array for friend list request?

Good afternoon!
I am learning as I create the Facebook API project. To solve one of the tasks, you need to get the id of all the friends of the user who logged in to the project using facebook oauth.
I read the Graph API and came to the conclusion that you need to use a request to /me/friends, having previously received a long-lived access_token. Everything was fine until the moment the request was made, because in response I get a JSON object { data: [] }.
Fine. I shoveled some more documentation, as well as all the questions related to getting a list of friends, on stackoverflow and did not really get anything. By clicking on requests /me/taggable_friends, /me/invitable_friends always received the same JSON { data: [] }.
Tried FQL. The query " SELECT uid2 FROM friend WHERE uid1=me(); " gave the same response { data: [] }.
I almost lost hope of finding myself. Has anyone encountered the problem and knows how to solve it?
PS On Facebook I 100% have 4 friends.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
ekorolev, 2014-06-10
@ekorolev

Answer found. The Facebook API 2.0 does not provide a way to get all of a user's friends. /me/friends only shows the list of friends who have installed your app.
stackoverflow.com/questions/24117459/facebook-api-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question