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

CordovaOauth only detected basic permission in Instagram #284

Closed alvarheras closed 8 years ago

alvarheras commented 8 years ago

I am using cordovaOauth https://github.com/nraboy/ng-cordova-oauth to authorizate the user with instagram .

My problem is that when the user authorizate with api only accepts the basic permissions not view others . as you can see I 'm having permits [ " basic" , " relationships " , " public_content " , " follower_list " ] but when the user enters data and accepts only warranted against the basic . What am I doing wrong ? Sorry for my English . Thank you . a greeting. My code :

var igscope = ["basic","relationships","public_content","follower_list"];
            var CLIENT_ID = "XXXXXXXXXXXXXXXXXXXXXXXX";

    $cordovaOauth.instagram(CLIENT_ID,igscope).then(function(result) {

        $scope.usuario.token = result.access_token;
        userFactory.setUser($scope.usuario);

        $timeout( function() {
            $state.go('app.browse');
        }, 200 );
});
nraboy commented 8 years ago

Do you get an access token in your response?

alvarheras commented 8 years ago

Yes i get the token generate in the response correct . But this token is generate with only basic permissions .

nraboy commented 8 years ago

If you're getting an access token, then this plugin is working correctly. I don't offer free support for this plugin anymore because the demand is too high. You can purchase support from myself or @matheusrocha89 or you can take it to Stack Overflow and the Instagram documentation.

Best,