Questions tagged «facebook-graph-api-v2.0»

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); } …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.