Firebase Facebook登录User.uid是零

时间:2017-02-14 11:49:46

标签: swift firebase firebase-authentication facebook-login

我通过Firebase实施了Facebook登录,但我收到user.uid为零的错误。

FIRAuth.auth()?.signInWithCredential(credential) { (user, error) in
    if user == nil || user!.uid.isEmpty { 
        print("User UID is nil")
    }
)}

我该如何解决?

0 个答案:

没有答案