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.

+1


source to share


1 answer


If you update permissions in an existing application, users will have to sign out again and sign in with a new set of permissions with a new code to log out.



+1


source







All Articles