Facebook集成将错误显示为抱歉发生了意外错误.请再试一次



代码:

 FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
    [login logInWithReadPermissions: @[@"public_profile"]
     handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
         if (error) {
             NSLog(@"Process error");
         } else if (result.isCancelled) {
             NSLog(@"Cancelled");
         } else {
             NSLog(@"result:%@", result);
             if ([FBSDKAccessToken currentAccessToken]) {
                 [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:@{@"fields": @"id, name, first_name, last_name, birthday, picture, email"}]
                  startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
                      if (!error) {
                          NSLog(@"fetched user:%@", result);

                      }
                  }];
             }
             NSLog(@"Logged in");
         }
     }];

我正在集成facebook登录。突然它给出错误为抱歉发生了意外错误。请再试一次错误代码:-994。我的代码出了什么问题?任何帮助都将不胜感激。感谢

点击下面的链接将对您有所帮助。

https://developers.facebook.com/docs/ios/getting-started/#next

相关内容

最新更新