如果用户选择使用他们使用电话号码(而不是电子邮件)创建的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控制台中检查了通过身份验证的用户,就会得到这个...
“ —”作为标识符。