Facebook requestForMyFriends does not return friends data

I used FBRequest to query the user's friend list.

FBRequest *requestFriendList = [FBRequest requestForMyFriends];
[requestFriendList startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error){
                 if (!error)
                 {
                     NSArray *fbFriends = [result objectForKey:@"data"];
                     //...
                 }
             }];

However, the returned query result did not contain any data. I printed the results, it contains a friend’s score, but no data inside.

Printing description of result:
{
    data =     (
    );
   summary =     {
        "total_count" = 585;
    };
}

If the request failed or the application does not have permissions, should it return an error or is the "total_count" also not displayed?

So what did I do something wrong? Can anyone help me fix this problem?

Thank!!

+4
source share
1 answer

Graph API 2.0 /. , Facebook, . - user_friends. Facebook:

: , . user_friends.

, : , /me/friends , .

+1

All Articles