FacebookSDK 4.23.0抱怨GraphRequest v2.4?

时间:2017-06-16 18:19:06

标签: ios xcode facebook-graph-api facebook-sdk-4.0

[[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:nil]
 startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
     if (!error) {
         NSLog(@"fetched user:%@", result);
     }else{
         [login
          logInWithReadPermissions: @[@"public_profile"]
          fromViewController:self
          handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
              if (error) {
                  NSLog(@"Process error");
              } else if (result.isCancelled) {
                  NSLog(@"Cancelled");
              } else {
                  NSLog(@"Logged in");
              }
          }];
     }
 }];

XCode上的新应用程序。

出现此错误:

FBSDKLog: starting with Graph API v2.4, GET requests for /me should contain an explicit "fields" parameter

Facebook宣称v2.9是最新的Graph API版本,为什么它仍然访问v.24?

0 个答案:

没有答案