我使用下面的代码来获取使用app的Facebook好友
// Issue a Facebook Graph API request to get your user's friend list
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{friendlist-id}"
parameters:nil
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Run Code Online (Sandbox Code Playgroud)
但我得到了以下回复.
{
data = (
);
summary = {
"total_count" = 279;
};
}
Run Code Online (Sandbox Code Playgroud)
我如何获得fbID,就像我们使用FBRequest获取最后一个api版本一样.
注意我使用的是最新的FB SDK.
谢谢.