Reputation: 7466
In my application I'm trying to retrieve the user's friends list. I ask for user_friends permission and check in the activity the the permission is granted. The problem is that the friends list returns empty at any time.
I use the following code:
Request request = Request.newMyFriendsRequest(_session, new Request.GraphUserListCallback() {
@Override
public void onCompleted(List<GraphUser> listFacebookFriends, Response response) {
Toast.makeText(MainActivity.this, ""+listFacebookFriends.size(), Toast.LENGTH_LONG).show();
Log.d(TAG, response.toString());
}
});
request.executeAsync();
And the returned response is:
{Response: responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[]}}, error: null, isFromCache:false}
What can be the problem?
Upvotes: 2
Views: 2430
Reputation: 4908
I assume you created your app after 4/30/2014 which means that you are using v2.0 of the API. That means that only friends that are using the app will get returned.
Upvotes: 5