Instagram/feed API media URL shows ‘URL signature expired’

You could use the media URL with some extra parameters as a solution to get the desired image instead of using the direct image link. For example https://www.instagram.com/p/Bo7OXJ3hYM8/media/?size=m Notice the addon /media/?size=m Letters could be t, m or l for different picture sizes This should return you the desired image Reference: https://www.instagram.com/developer/embedding/

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.

Where do I find the Instagram media ID of a image

Here’s a better way: http://api.instagram.com/oembed?url=http://instagram.com/p/Y7GF-5vftL/ Render as json object and you can easily extract media id from it — For instance, in PHP $api = file_get_contents(“http://api.instagram.com/oembed?url=http://instagram.com/p/Y7‌​GF-5vftL/”); $apiObj = json_decode($api,true); $media_id = $apiObj[‘media_id’]; For instance, in JS $.ajax({ type: ‘GET’, url: ‘http://api.instagram.com/oembed?callback=&url=http://instagram.com/p/Y7GF-5vftL‌​/’, cache: false, dataType: ‘jsonp’, success: function(data) { try{ var media_id = data[0].media_id; }catch(err){} } … Read more

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

Instagram ?__a=1 url not working anymore & problems with graphql/query to get data

The query_hash does not change, at least in the past few days. It indicate what TYPE of query it is. Below listed 4 query types I knew, hope these help. Load more media under https://www.instagram.com/someone/?__a=1 https://www.instagram.com/graphql/query/?query_hash=472f257a40c653c64c666ce877d59d2b&variables={“id”:”93024″,”first”:12,”after”:”XXXXXXXX”} (Instagram blocked the above access since 2018-04-12. You have to remove the __a=1 and extract the JSON inside a … Read more

tech