Authenticate the Test User { “error_type”: “OAuthException”, “code”: 400, “error_message”: “Invalid platform app” }

Felice! When setting up an Instagram app, you should use the platform-specific App ID and not the generic one set up on Facebook. In your Facebook app Dashboard go to Products > Instagram > Basic Display and should see the Instagram App ID. Use that in your authorization URL and it should work.

OAuthPermissionsException Instagram API in Sandbox

I figured out what was going on. One need to first change the scope of the authorization for the application. This is how I did it: From your browser execute: https://api.instagram.com/oauth/authorize/?client_id=CLIENTID&redirect_uri=REDIRECT-URI&response_type=code&scope=SCOPE Just need to insert your data for the words in uppercase Once that is done, the application is authorized for that scope. As I … Read more

How to get an Instagram Access Token

Link to oficial API documentation is http://instagram.com/developer/authentication/ Longstory short – two steps: Get CODE Open https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code with information from http://instagram.com/developer/clients/manage/ Get access token curl \-F ‘client_id=CLIENT-ID’ \ -F ‘client_secret=CLIENT-SECRET’ \ -F ‘grant_type=authorization_code’ \ -F ‘redirect_uri=YOUR-REDIRECT-URI’ \ -F ‘code=CODE’ \ https://api.instagram.com/oauth/access_token

Instagram how to get my user id from username?

Update in Jun-5-2022, Instagram API no longer use Bearer Token for authentication. But I find another useful API. All you need is added extra header X-IG-App-ID with “magic value”. https://i.instagram.com/api/v1/users/web_profile_info/?username=therock Use can use my docker container Insta-Proxy-Server to bypass the authentication. https://hub.docker.com/repository/docker/dockerer123456/insta-proxy-server Demo video (I just run directly from source code): https://www.youtube.com/watch?v=frHC1jOfK1k Update in Mar-19-2022, … Read more

How can I get a user’s media from Instagram without authenticating as a user?

var name = “smena8m”; $.get(“https://images”+~~(Math.random()*3333)+”-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url=https://www.instagram.com/” + name + “https://stackoverflow.com/”, function(html) { if (html) { var regex = /_sharedData = ({.*);<\/script>/m, json = JSON.parse(regex.exec(html)[1]), edges = json.entry_data.ProfilePage[0].graphql.user.edge_owner_to_timeline_media.edges; $.each(edges, function(n, edge) { var node = edge.node; $(‘body’).append( $(‘<a/>’, { href: ‘https://instagr.am/p/’+node.shortcode, target: ‘_blank’ }).css({ backgroundImage: ‘url(‘ + node.thumbnail_src + ‘)’ })); }); } }); html, body { … Read more

tech