Facebook Ionic.auth getting 500 Internal Server error


#1

I am trying to integrate social login in my app by using the new ionic beta.

I am debugging the app on my phone.
I have installed the in-app broswer,ionic-platform-web-client & whitelist plugins.

Currently when I click on login with facebook:

  1. It opens facebook in an in-app browser.
  2. Asks me to login with credentials.
  3. Once I login the browser takes me to a 500 server error page.
    But the in-app browser remembers my facebook profile.
    Next time when I try again the in-app browser takes me to my facebook profile.
    Instead of asking permissions.

Below is the FB App where I have pointed my site URL to be ionic.io as the guide/documentation had asked me to set it.

Any help would be appreciated as to why I am getting an internal server error.


Ionic Cloud Auth errors
#2

I am also getting same error for google and facebook, anybody have answers ??


#3

Same error here.

Anyone can help us, please?


#4

Some screenshots of the error:

My facebookLogin method:

facebookLogin() {
    this.facebookAuth.login().then(
        () => {
            console.log('login with facebook successfully');                
            console.log(this.user.social);
        },
        (err) => {
            console.error('login with facebook error', err);
        }
    );
}

And my system info:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.1 Build version 8B62

Any suggestion @Aivknowtech, @vinayulphi ?


#5

There’s a github related issue:

https://github.com/driftyco/ionic-cloud-issues/issues/234

Seems that @devnetics is working on it.
:grin:


#6

I’ve pushed the fix up to our servers. Please note we are making some devops changes to our services this week, so it might not be live until this evening, or at the latest tomorrow. Let me know if you guys are still having trouble after that.