I am using the following login method to login
ParseFacebookUtils.logInWithReadPermissionsInBackground(this,
Arrays.asList("user_status", "read_stream", "user_friends", "read_friendlists"), new LogInCallback() {
@Override
public void done(ParseUser parseUser, ParseException e) {
System.out.println("ParseUser: " + parseUser);
System.out.println("ParseException: " + e);
linkUser(parseUser);
}
});
and using the following method to get my friend list, I need to retrieve all friends
GraphRequest request1 = GraphRequest.newMyFriendsRequest(AccessToken.getCurrentAccessToken(), new GraphRequest.GraphJSONArrayCallback() {
@Override
public void onCompleted(JSONArray jsonArray, GraphResponse graphResponse) {
Toast.makeText(HomeScreenActivity.this, "" + jsonArray.length(), Toast.LENGTH_SHORT).show();
}
});
request1.executeAsync();
but the jsonArray is always empty, can anyone tell me what is wrong here ?
EDIT
I also get the following value in the Graph Response
{Response: responseCode: 200, graphObject: {"summary":{"total_count":476},"data":[]}, error: null}