# Instagram API does not display the image

**URL:** https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988
**Category:** Developing with Prismic
**Created:** [February 10, 2021, 1:18pm UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988 "2021-02-10T13:18:18Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![betcdigital.consulta](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@betcdigital.consulta](https://community.prismic.io/u/betcdigital.consulta)
#### Post date: [February 10, 2021, 1:18pm UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/1 "2021-02-10T13:18:18Z")

</div>

Hi there,

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.

When we inspect the API's result, I have in "instagram\_links\_group" \> "instagram\_link" \> "thumbnail URL" the following url: [https://scontent.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/106801610\_289284412186235\_3559400079460734215\_n.jpg?\_nc\_ht=scontent.cdninstagram.com&\_nc\_cat=111&\_nc\_ohc=XWIFQRU6Vi8AX-pm0OQ&tp=1&oh=985ace0c35124d6c897ab873e9185071&oe=6002A985](https://scontent.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/106801610_289284412186235_3559400079460734215_n.jpg?_nc_ht=scontent.cdninstagram.com&_nc_cat=111&_nc_ohc=XWIFQRU6Vi8AX-pm0OQ&tp=1&oh=985ace0c35124d6c897ab873e9185071&oe=6002A985) that redirects me to: URL signature expired

Could you double check and tell me what's the possible reason for it?

Thanks

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [February 16, 2021, 10:02am UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/5 "2021-02-16T10:02:32Z")

</div>

Hi Team,

Sorry about the delayed response on this.

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.

Thanks.

---

<div class="post-metadata">

### Author: ![betcdigital.consulta](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@betcdigital.consulta](https://community.prismic.io/u/betcdigital.consulta)
#### Post date: [February 17, 2021, 8:39am UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/6 "2021-02-17T08:39:37Z")

</div>

Hi Phil,

Thanks for your help.  
The name of the repo is: "Cheval Blanc"

For the Instagram integration, we have a Slice with an embed field yes

Thanks,  
Martin

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [February 17, 2021, 10:20am UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/7 "2021-02-17T10:20:13Z")

</div>

Hey Martin,

I'm happy to help. Can you also provide me with the name of the Slice and an example image URL that you are adding you I can test?

Thanks.

---

<div class="post-metadata">

### Author: ![betcdigital.consulta](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@betcdigital.consulta](https://community.prismic.io/u/betcdigital.consulta)
#### Post date: [February 17, 2021, 10:24am UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/9 "2021-02-17T10:24:35Z")

</div>

For instance, here is the section where we want to put the Instagram URL: [https://chevalblanc.prismic.io/documents~k=maisons&b=working&c=published&l=fr-fr/XErggBEAADGWYoTm/?section=Instagram%20Module](https://chevalblanc.prismic.io/documents~k=maisons&b=working&c=published&l=fr-fr/XErggBEAADGWYoTm/?section=Instagram%20Module)

in "Instagram Links" (the name of the Slice) you can see that the URL give no preview ([https://www.instagram.com/p/CEMAYcUgobK/](https://www.instagram.com/p/CEMAYcUgobK/)) :

 ![Image_17_02_2021_11_22_collée](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/6/6817caec9414ab64a2f6fec2b01367bffc6d9327.jpeg)

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.

---

<div class="post-metadata">

### Author: ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)
#### Post date: [February 17, 2021, 10:41am UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/10 "2021-02-17T10:41:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![betcdigital.consulta](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@betcdigital.consulta](https://community.prismic.io/u/betcdigital.consulta)
#### Post date: [February 17, 2021, 2:14pm UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/11 "2021-02-17T14:14:40Z")

</div>

Ok thanks,

Do you know when it will be possible for you to give me an answer?

---

<div class="post-metadata">

### Author: ![marc.mcintosh](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/marc.mcintosh/32/25_2.png) [@marc.mcintosh](https://community.prismic.io/u/marc.mcintosh)
#### Post date: [February 17, 2021, 6:26pm UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/12 "2021-02-17T18:26:13Z")

</div>

Hi Martin,

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.

> **[oEmbed - Instagram Platform - Documentation - Facebook for Developers](https://developers.facebook.com/docs/instagram/oembed#getting-thumbnails)**
>
> How to use the Instagram oEmbed endpoint

```auto
const url = encodeURIComponent(data.embed_url)
const maxwidth = "500"
const token = "facebook-app-token"
fetch(`https://graph.facebook.com/v9.0/instagram_oembed?url=${url}&maxwidth=${maxwidth}&access_token=${token}&fields=thumbnail_url`)

```

Or is this an issue with the way things look in the editor?

Best,

Marc

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)
#### Post date: [February 25, 2021, 3:54pm UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/13 "2021-02-25T15:54:40Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)
#### Post date: [December 9, 2021, 4:54pm UTC](https://community.prismic.io/t/instagram-api-does-not-display-the-image/3988/14 "2021-12-09T16:54:45Z")

</div>


