问题描述
我试图整合FirebaseUI Auth库。谷歌登录和电子邮件登录工作正常,但我有一个问题,设置Facebook登录。这是我的代码:
user = firebaseAuth.getCurrentUser();
if(user!= null){
startMainActivity();
finish();
}其他{
startActivityForResult(
AuthUI.getInstance()
.createSignInIntentBuilder()
.setIsSmartLockEnabled(!BuildConfig.DEBUG)
.setProviders(阵列.asList(新AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build(),
新AuthUI.IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build(),
新AuthUI.IdpConfig.Builder( AuthUI.FACEBOOK_PROVIDER).build()))
.build(),
RC_SIGN_IN);
$ / code>
当我点击facebook按钮时,所有登录过程都顺利完成个人资料我看到我的应用程序列表中的应用程序),但firebase不会创建用户,我卡在登录页面。
在Android监视器中,我有以下几行(应用程序不会崩溃):
$ b $ pre $ E / CredentialSignInHandler:意外使用凭证进行登录时出现异常
com.google.firebase.FirebaseException:发生内部错误。 [来自Facebook不成功debug_token响应]在com.google.android.gms.internal.zzblv.zzce(未知来源)
。在com.google.android.gms.internal.zzbls $ zzj.zza
(未知源)
在com.google.android.gms.internal.zzbmd.zzcf(来源不明)
在com.google.android.gms.internal.zzbmd $ zza.onFailure(来源不明)
。在com.google.android.gms.internal.zzbly $ zza.onTransact(未知来源)
。在android.os.Binder.execTransact(Binder.java:453)
Firebase显示的错误仅为来自Facebook的不成功的debug_token响应,没有任何代码或错误消息...我不知道怎么办。
感谢您的帮助!
有同样的问题,Facebook上的验证火力点启用,但指向另一个AP这是与我正在做的一个不同的折叠编号。因此,需要确保firebase console / authentication / sign in method / facebook中的应用程序ID与您的Facebook控制台上的应用程序ID相同。
我花了好几个小时弄清楚,希望它有用。
I'm trying to integrate FirebaseUI Auth library. Google sign-in and Email sign-in are working fine but I have a problem setting up Facebook Login.This is my code:
user = firebaseAuth.getCurrentUser();
if (user != null) {
startMainActivity();
finish();
} else {
startActivityForResult(
AuthUI.getInstance()
.createSignInIntentBuilder()
.setIsSmartLockEnabled(!BuildConfig.DEBUG)
.setProviders(Arrays.asList(new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build(),
new AuthUI.IdpConfig.Builder(AuthUI.GOOGLE_PROVIDER).build(),
new AuthUI.IdpConfig.Builder(AuthUI.FACEBOOK_PROVIDER).build()))
.build(),
RC_SIGN_IN);
}
When I click the facebook button all the login process goes well (in my facebook profile I see the app in my apps list) but firebase doesn't create the user and I'm stuck on the login page.In Android Monitor I have the following lines (the app doesn't crash):
E/CredentialSignInHandler: Unexpected exception when signing in with credential
com.google.firebase.FirebaseException: An internal error has occurred. [ Unsuccessful debug_token response from Facebook ]
at com.google.android.gms.internal.zzblv.zzce(Unknown Source)
at com.google.android.gms.internal.zzbls$zzj.zza(Unknown Source)
at com.google.android.gms.internal.zzbmd.zzcf(Unknown Source)
at com.google.android.gms.internal.zzbmd$zza.onFailure(Unknown Source)
at com.google.android.gms.internal.zzbly$zza.onTransact(Unknown Source)
at android.os.Binder.execTransact(Binder.java:453)
The error that Firebase shows up is only "Unsuccessful debug_token response from Facebook" without any code or error message... I don't know what to do.
Thanks for the help!
I have the same problem, the facebook auth on firebase was enabled but pointing to another application id that is different with one I am working on.
So need to make sure the application id from "firebase console/ authentication/ sign in method/ facebook" is the same with application id on your facebook console.
I took me several hours to figure out, hope it useful.
这篇关于FirebaseUI Auth - Facebook登录错误:来自Facebook的debug_token响应失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!