I am trying to integrate the FirebaseUI Auth library. Logging in to Google and logging in to the email system are working fine, but I had a problem setting up my 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 processes go well (in my facebook profile I see the application in the list of my applications), but firebase does not create a user and I am stuck on the login page. In Android Monitor, I have the following lines (the application does not 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 is only a βDebug_token from Facebook Failed Responseβ without any code or error message ... I don't know what to do.
Thanks for the help!
source share