7
Facebook Graph API v2.0 +-/ me / friends返回空,或者仅返回也使用我的应用程序的朋友
我正在尝试通过Graph API v2.0获取我的朋友的姓名和ID,但是数据返回空: { "data": [ ] } 当我使用v1.0时,以下请求一切正常: FBRequest* friendsRequest = [FBRequest requestForMyFriends]; [friendsRequest startWithCompletionHandler: ^(FBRequestConnection *connection, NSDictionary* result, NSError *error) { NSArray* friends = [result objectForKey:@"data"]; NSLog(@"Found: %i friends", friends.count); for (NSDictionary<FBGraphUser>* friend in friends) { NSLog(@"I have a friend named %@ with id %@", friend.name, friend.id); } …