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!!
source
share