Using min_id in the Instagram API
Using min_id in the Instagram API
Using min_id in the Instagram API
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/
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.
Go to Roles > Instagram Users and add your Instagram account. Then go to https://www.instagram.com/accounts/manage_access/ to accept the Tester Invite from your app.
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/Y7GF-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
If you look at the console, we can see there is an error related to “Content Security Policy” which avoid loading google captcha script : Based on this answer there is no easy way to disable “Content Security Policy” in Chrome except by using an extension. Such an extension is available here : Disable Content … Read more
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
Yes, from what I think are updated Facebook docs. Rate Limiting The Instagram API uses the same rate limiting as the Graph API (200 calls per user per hour) with one exception: the /media/comments edge limits writes to 60 writes per user per hour. Please refer to the Graph API’s rate limiting documentation for more … Read more
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
The short answer is: No. The only way to post images is through the mobile app. From the Instagram API documentation: http://instagram.com/developer/endpoints/media/ At this time, uploading via the API is not possible. We made a conscious choice not to add this for the following reasons: Instagram is about your life on the go – we … Read more