1080x1080 photos via Instagram API

后端 未结 10 1116
长情又很酷
长情又很酷 2020-12-08 05:11

http://www.theverge.com/2015/7/6/8899807/instagram-1080p-pictures-photo-upload

The Verge recently made known the latest app versions of Instagram are uploading photo

10条回答
  •  萌比男神i
    2020-12-08 05:35

    The problem with instagram image URL's is that the URL signatures provided in the json responses expire after some time. My workaround for this problem is as follows:

    Steps: 1. Get the instagram post link. Eg : https://www.instagram.com/p/Bo-Jru-g7Wa/

    or if you don't have the link, the instagram api provides you with a permalink(image-code) option in the result array which for the above link is Bo-Jru-g7Wa

    1. Now just add media?size=l after the url ie.,

    Result: High quality image url:

    https://www.instagram.com/p/Bo-Jru-g7Wa/media?size=l

    you can see it in action here: https://jsfiddle.net/nmj1z7wo/fiddle URL

    This link can be considered as a shorthand code to instagram image URL's which are very much bigger. Supported values for size are t (thumbnail), m (medium), l (large). Defaults to m.

提交回复
热议问题