我需要从Facebook获取所有用户的朋友列表,但该请求仅返回已安装应用的朋友。代码如下:
FBRequest *request = [FBRequest requestWithGraphPath:@"me/friends" parameters:@{@"fields":@"installed,id,first_name,last_name,location,email"} HTTPMethod:@"GET"];
[request startWithCompletionHandler: ^(FBRequestConnection *connection,
NSDictionary* result,
NSError *error) {
NSLog(@"result friends %@",[result objectForKey:@"data"]);
NSLog(@"error %@",[error description]);
}];
答案 0 :(得分:0)
看看这里:Don't get all friends of facebook in my ios app?
使用Graph API v2.0,您只能获得也使用该应用的朋友。这是设计的。