user2488971
user2488971

Reputation: 51

OAuth access_token request -> forbidden

Yesterday I wanted to get an access_token from my account, tried several websites, every time I tried it I got a white page with "Forbidden".

Does Instagram lock the API Access from User?

Upvotes: 4

Views: 2294

Answers (4)

Shabir
Shabir

Reputation: 36

here is the solution

  1. login to your instagram account from pc browser
  2. go to Edit Profile
  3. change some of your profile info. example: add or delete some text to Bio
  4. Click submit. a new screen will apear which show you a security picture type the text from picture. after that you will be able to get access token.

Upvotes: 2

Mad
Mad

Reputation: 71

For the people those don't understand.

Just go to instagram and reset your password than you will see the captcha.

After filling this in you can retreve the acces token with your application

Upvotes: 0

Tishka17
Tishka17

Reputation: 320

You got "forbidden" because of new instagram "captcha" feature. I cannot still find any official information about it, but if user passes captcha on his mobile, authorization will work again.

Upvotes: 2

Max
Max

Reputation: 31

I didn't have any problem, using oauth.io with a simple Instagram connect:

OAuth.popup("instagram", function(e,r) {
    if (e) {
        $('#results').html('error: ' + JSON.stringify(e));
        return
    }

    $('#results').html('result from instragram: ' + JSON.stringify(r));
});

You can try directly on http://jsfiddle.net/bumpmann/4Ef8p/ and it should reply something like: {"access_token":"...","user": {"username":"...","bio":"...","website":"...","profile_picture":"http://images.ak.instagram.com/profiles/...","full_name":"...","id":"123456789"}}

If you don't get that, you have most likely a problem with your Instagram account (or your environment if it works on another device)

Upvotes: 3

Related Questions