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.
Go to Facebook developers page and select your app from the dropdown menu. Then go to Settings -> Advanced and find Is App Secret embedded in the client? select No from the toggle button and done. Refer this image link if you face any difficulty finding the option. Facebook Login error : Unsuccessful debug_token response from Facebook
I had the same problem and resolved it after re-checking the App Secret on the top right of the screen at Facebook developers page. Make sure the App Secret in Firebase Authentication(Facebook Provider) is the same as the app secret in Facebook developers page.
App secret on Facebook developers
make sure this is correct with facebook dev page
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With