0

I can successfully access the facebook userdata via the OpenFB API, but when I try to use:

var auth = $firebaseAuth(ref);
auth.$authWithOAuthToken("facebook", accessToken)

to authenticate the user through Firebase, I get the following error:

Firebase Auth Error

I've tried adding several OAuth redirect URIs in the Facebook developer console:

Facebook O AUth Settings

I'm using the correct App ID and App Secrect from Facebook. Any ideas?

  • why are you not using the authPopups? Where are you getting the accessToken you are using - https://www.firebase.com/docs/web/guide/login/facebook.html – Aaron Saunders May 29 '16 at 20:34
  • I'm using the AngularFire $firebaseAuth service. I was using openFB.login() to get an accessToken, and now I'm using this plugin to get an accessToken via the native Facebook app: https://github.com/Wizcorp/phonegap-facebook-plugin Both approaches are successfully retrieving data from Facebook, but both also fail when trying to authenticate with Firebase. Since Firebase recently underwent some major changes, could this have broken the functionality of the AngularFire auth services? – Samuel Austin Smith May 31 '16 at 07:01

0 Answers0