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
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 :
Hope this helps.
Related Topics
Swift: How to Add a Class Method in 'string" Extension
Why Does Cabasicanimation Try to Initialize Another Instance of My Custom Calayer
Iocreateplugininterfaceforservice Returns Mysterious Error
Get Path of a File in a Data Set Located in Assets.Xcassets
Why Do I Get Source Kit Service Terminated Error
Create a Generic Swift Function to Return an Array of Core Data Entities
Swift Lose Precision in Decimal Formatting
iOS 8 Sdk, Swift, Mapkit Drawing a Route
How to Unwrap Optional<Optional<T>> in Swift 1.2
More Precision Than Double in Swift
Swift iOS14 Datepicker Text Alignment
Swiftui CPU High Usage on Real-Time Foreach View Updating (Macos)
How to Calculate Quadrangle for Visible Part of Vertical Plane
Load Viewcontroller Swift - Black Screen