You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting the following error when I try to login in to Firebase using Facebook with my app. The Facebook login looks fine, credential gets set but FirebaseAuth.instance.signInWithCredential(credential) throws an exception. As far as I can tell app id and app secret are set properly in Firebase and match the Facebook settings. What else needs to be set correctly? Google login seems to work.
Code I'm using is this:
final facebookLogin = new FacebookLogin();
final facebookLoginResult =
await facebookLogin.logInWithReadPermissions(['email', 'public_profile']);
...
case FacebookLoginStatus.loggedIn:
print("LoggedIn");
AuthCredential credential= FacebookAuthProvider.getCredential(accessToken: facebookLoginResult.accessToken.token );
firebaseUser = await FirebaseAuth.instance.signInWithCredential(credential);
break;
PlatformException (PlatformException(ERROR_INVALID_CREDENTIAL, Unsuccessful
debug_token response from Facebook: {"error":{"message":"(#100) The App_id in the
input_token did not match the Viewing
App","type":"OAuthException","code":100,"fbtrace_id":"A9EbpMwrswKpp9SB-uyoPDh"}},
null))
Any suggestions?
The text was updated successfully, but these errors were encountered:
I'm getting the following error when I try to login in to Firebase using Facebook with my app. The Facebook login looks fine, credential gets set but FirebaseAuth.instance.signInWithCredential(credential) throws an exception. As far as I can tell app id and app secret are set properly in Firebase and match the Facebook settings. What else needs to be set correctly? Google login seems to work.
Code I'm using is this:
exception is thrown on:
error is:
Any suggestions?
The text was updated successfully, but these errors were encountered: