Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Small Image Size by new Instagram API graph.instagram.com/me/media

I want to make a widget to display Instagram feed. Through graph.instagram.com/me/media?fields=caption,media_type,media_url,permalink,thumbnail_url&access_token=XXXXX I get the images. But in the widget I need a size of 150x150px.

oembed cannot be used, Limitations: https://developers.facebook.com/docs/instagram/embedding#limitations

Well, in a div size of 150x150px, an image of 800x1200 is also not needed.

How can I get other sizes?

like image 497
LenVan Avatar asked Oct 15 '22 02:10

LenVan


1 Answers

The latest Instagram API doesn't have any ability to fetch an alternative size image on their basic display. It is possible to fetch a thumbnail URL using the oembed api, but this seems dev overkill. The Instagram Basic Display API seems to be evolving, so this may be updated in the future. For now, it seems that your only option is to always fetch the original sized images.

like image 57
Ian Tearle Avatar answered Dec 15 '22 07:12

Ian Tearle