Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question