手机Facebook帐户Firebase身份验证

时间:2019-05-17 02:13:46

标签: objective-c firebase firebase-authentication

如果用户选择使用他们使用电话号码(而不是电子邮件)创建的Facebook帐户对Firebase进行身份验证/创建帐户,该如何找回呢?


FIRAuthCredential *credential = [FIRFacebookAuthProvider credentialWithAccessToken:tokenString];

[[FIRAuth auth] signInAndRetrieveDataWithCredential:credential completion:^(FIRAuthDataResult * _Nullable authResult, NSError * _Nullable error) {

    NSLog(@"name: %@   phone: %@", authResult.user.displayName, authResult.user.phoneNumber);

}];

上面给了我:

2019-05-16 21:55:23.336112-0400 APP [934:115237] name: Will Ullrich   phone: (null)

ALSO

如果我在Firebase控制台中检查了通过身份验证的用户,就会得到这个...

enter image description here

“ —”作为标识符。

0 个答案:

没有答案