I’d like to use Facebook login through Firebase like this:
firebase.auth().signInWithPopup(provider).then(function(result) {
// This gives you a Facebook Access Token. You can use it to access the Facebook API.
}).catch(function(error) {
// Handle Errors here.
});
But I have still some trouble with an “authorization”. Here my console error:
I tried to check “Auth section -> Sign in” in Firebase, here’s the picture:
But that, unfortunately, did not help me. So I checked the Google API console, here’s the key:
The Javascript error appears when I call signInWithPopup
function.
Can somebody help me? Thanks.
2
Answers
Of course @bojeil, this is the response of "getProjectConfig" request.
Assuming that you’ve already registered your application with Facebook, you need to add your Facebook application id and secret in Firebase and then register the OAuth redirect with Facebook.
Sign-in Providers