nraboy / ng-cordova-oauth

AngularJS oauth library for use with Apache Cordova projects
https://www.thepolyglotdeveloper.com
MIT License
456 stars 199 forks source link

Facebook invalid permission #279

Closed M4rcDev closed 7 years ago

M4rcDev commented 8 years ago

Hi, I am trying to getting the user email but while logging in i´m getting the following error screenshot_20160821-234139 : Thats my code: $scope.fbLogin = function () { window.cordovaOauth.facebook("APPID", ["public_profile"], {redirect_uri: "http://localhost/callback"}).then(function(result){ displayData(window.http, result.access_token); }, function(error){ alert("Error: " + error); }); };

(I have replaced the APP ID here.) Any ideas why this is happening ?

nraboy commented 8 years ago

are you receiving an access token?

M4rcDev commented 8 years ago

No, the error function is called with the error instead of the function with the result, that should contain the access token.

M4rcDev commented 8 years ago

Any updates @nraboy :D?

nraboy commented 8 years ago

Sounds like you didn't configure something correctly in your Facebook dashboard.

M4rcDev commented 8 years ago

I have played around a bit with the settings and still getting the same error :(