Instagram/feed API media URL shows 'URL signature expired'

后端 未结 3 1027
一生所求
一生所求 2020-12-29 04:18

I am using Instagram feed API to show my Instagram posts on my Website. But some video URL shows \'URL signature expired\'.

Any solution for me ?

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 04:47

    At the time of writing, your only alternative is to store or cache the images somehow.

    For example, you could store the images in your database. Instagram platform policy requires that you delete the images when your application no longer needs them.

    Alternatively, if you use a CDN you can serve these images through an image proxy and then set long expiry dates on the CDN. This way you are not storing the images in a database, but your users can still see them after the URL signature expires.

提交回复
热议问题