Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

  • Thanks
like image 396
user2488971 Avatar asked Mar 21 '23 08:03

user2488971


1 Answers

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)

like image 76
Max Avatar answered Apr 06 '23 19:04

Max