0





15

Advertisement

I'm using Azure mobile service to login an Angular/ionic app using Facebook.

client.login("facebook").then(function (data){
    console.log('logged in succesfully..')
    $state.go('menu.events');
}, function(error){
    console.log('login failed.');
});

The Facebook login page poped up and I entered email/password and it logged in successfully. Then it redirect to an Url

https://mysite.azurewebsites.net/.auth/login/facebook/callback?code=AQBLNJX....l588-rnr2PLtoUJWWza....wq8OKv_LT6QZ3kgWa.......

and the page just shows one sentence,

You do not have permission to view this directory or page. enter image description here

I closed window and then the failed callback is called and printed 'login failed' in the console.

Question author Dc7a9163d9 | Source

Advertisement


0