Facebook graph API / me / friends doesn't return all friends who have approved the app?
After surfing for a long time, I realized that the Graph API /me/friends
only returns friends who are also using the app. I need an answer from an experienced user
Any option to download all of the user's friends?
Now, in the second request, I have used the following code to fetch the user's friends after permission has been checked and approved user_friends
by the facebook team, and also I am logged in with permission user_friends
.
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/me/friends",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result *
}
}
).executeAsync();
Answer
{Response: responseCode: 200, graphObject: {"summary":{"total_count":572},"data":[]}, error: null}.
I have friends on my list who also use the same app but do not receive their information, also you can see in the above answer only total_count
.
What goes wrong, can anyone help me?
Update
After some debugging, now I only get the details of one friend in the response, while I have more friends than anyone using app.why won't it return other friend data? any idea?
Also when I debugged with the Access Token Debugger it reports that the user has user_friends
scope.still not getting the expected response.
source to share