我得到一个Error: HTTP status code: 400
- (void)openSession
{
[FBSession openActiveSessionWithReadPermissions:nil
allowLoginUI:YES
completionHandler:
^(FBSession *session,
FBSessionState state, NSError *error) {
[self sessionStateChanged:session state:state error:error];
}];
[FBRequestConnection startWithGraphPath:@"me" parameters:nil HTTPMethod:@"GET" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
NSLog(@"result %@",result);
}];
}
这有时有效,有时我得到这个状态码。是否有更安全/更少故障的方法来获取用户的 Facebook Graph 数据(用户名、姓名、fb_id)?