Firebase在iOS中简单login

我正在使用FirebaseSimpleLogin通过Facebookvalidation我的应用程序。 我已经用facebookapp id和显示名称更新.plist文件。 我也注册了我的应用程序的捆绑ID。 正如在文档中所build议的,我也在AppDelegate中实现了openUrl,并在我的Facebookbuttonlogin中使用了下面的方法。 但控制台显示发生了第三方提供商错误。 任何人有任何线索?

- ( IBAction ) onBtnFacebook : ( id ) sender { [self.authClient loginToFacebookAppWithId:@"767056019984823" permissions:@[@"email"] audience:ACFacebookAudienceOnlyMe withCompletionBlock:^(NSError *error, FAUser *user) { if (error != nil) { NSLog(@"%@",error); UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"" message:@"There was an error in opening your account. Please try again." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [message show]; } else { UIAlertView *message = [[UIAlertView alloc] initWithTitle:@"Welcome" message:self.email delegate:nil cancelButtonTitle:@"" otherButtonTitles:nil]; [message show]; [ self dismissViewControllerAnimated : YES completion : ^{ } ] ; } }]; } 

在Appdelegate.m

  - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { BOOL wasHandled = [FBAppCall handleOpenURL:url sourceApplication:sourceApplication]; NSLog(@"hello"); // add any app-specific handling code here return wasHandled; } 

Interesting Posts