Using instafeed.js for Instagram feeds. I was using resolution: 'standard_resolution' and also disabled the Non Square Media option from the instagram client to get all the pictures squares on 612x612, however, this has stopped working out of the sudden and don't know where the issue is coming from.
Asked
Active
Viewed 1,225 times
3
-
Same problem here, the images from instagram.com/<:accountName>/media are non squared now. Is there a blog posts from instagram to those changes? – wiesson Aug 30 '17 at 10:48
-
I tried to find something in their developer's blog but didn't find anything nor anything related to a new release that has affected this – John R Aug 30 '17 at 15:22
1 Answers
0
I had the same problem and I found a good solution here : https://humaan.com/blog/bigger-square-thumbnails-from-the-instagram-api/.
If you’re crawling the API with a script, you can do something like this in PHP to alter the thumbnail (where $post is your Instagram post object):
$thumbnail = str_replace('s150x150/', 's320x320/', $post->images->thumbnail->url);
Alternatively if you’re using JavaScript, you can do something like this:
var thumbnail = post.images.thumbnail.url.replace('s150x150/', 's320x320/');

Benjamin Arthuys
- 123
- 1
- 7
-
Is there a way to use something like this without making two requests for each image? – John R Sep 05 '17 at 00:48
-
the thing is to call the "thumbnail" media because it is square and replace 's150x150/' in the url of the media by the resolution you want. For example I used the best resolution 's1080x1080/' – Benjamin Arthuys Sep 05 '17 at 12:40