Login Through Facebook Using Oauth Issue with Firebase (App_Id in The Input_Token Did Not Match The Viewing App)

Login through Facebook using OAuth issue with Firebase (App_id in the input_token did not match the Viewing App)

This was ridiculously hard to find. I had to go to Firebase > Authentication > Sign-in Method > Facebook and change the fields in there to match those on Facebook developer. For some inexplicable reason they were different...

Login with Facebook in react native return The App_id in the input_token did not match the Viewing App

When using the function "signInWithCredentials" you need to pass the auth also which you will get by

const auth = getAuth()

and then after getting the credentials

signInWithCredential(auth, credential)

Facebook login using Firebase results in Invalid OAuth access token error

Problem solved! Issue was with how the app is set up on the Facebook developer console. When first creating the app you are presented with the following menu

Sample Image

I originally selected "Build or Connect to a Game" as it says it is used when connecting to a gaming app played on or off the Facebook Platform, which is what best describes my app. I re-setup the app on FB, but now chose "Build Connected Experiences" and now it works. No idea why though.

Firebase : Facebook authentification with Firebase token not working

Finally found an answer thanks to this post :

https://github.com/firebase/FirebaseUI-iOS/issues/83#issuecomment-232523935

I have to disable the option "Is App Secret embedded in the client?" in the Facebook console :

Sample Image

Hope this helps.



Related Topics



Leave a reply



Submit