We have an issue with Instagram API and the link to display the picture on our website.
We have an Instagram module on Prismic where we can contribute the post's link on Instagram we want to display on the website.
At first, it's working well with the image displayed, but after some time, the image doesn't display anymore in the module and in Prismic we don't have the thumbnail.
I'm not really sure what the issue is here as it's something I've never seen before. When you say you have an instagram module on Prismic, do you mean you have a Slice with and embed field? or are you importing you images through the API with Integration fields?
If you can tell me this and the name of your repo I might be able to help.
When I populate this field with a link, the preview is working, and then after some days (don't know how much), the preview disappear and the image isn't displayed in front.
OK, Thanks. This extra information really helps, although I'm not sure what exactly the issue is. So I'm going to have to pass this to our Dev Team here to get some help. Once I have a response I'll let you know.
thunbnails are generated on instagrams side and it looks like they clear out the cdn so the thumbnail_url becomes invalid.
If you want an all ways up to-date thumbnail to appear on your site i would recommend using the "embed_url" property to form query to instagrams oembed api.