Images are not loading in the widget

If the pictures and video thumbnails are not loading in your widget and it looks like on one of the screenshots below, this article is for you.

Screenshot showing a widget where some of the images are not loading.
Screenshot showing the widget where none of the widgets are loading.
Screenshot showing an example of the widget with lazy-load option enabled and infinite scroll.

There can be three reasons for that:

  1. The connection between our app and your Instagram account is expired.
  2. You are using improper embed code on your website.
  3. One of the extensions for your browser blocks the images. 

The connection between our app and your Instagram account is expired.

It is the most common cause why the images in the widget will not load. When the connection (named access token) expires, we can no longer get the URLs to the photos from Instagram. The URL changes over time, causing the effect of broken images.

Please visit the list of your Instagram accounts or your Dashboard. Check if your access token is active. If it says it’s expired, like in the screenshot below, click the Refresh token button. 

Screenshot showing how the expired access token looks like in user dashboard.

Once you renew the token, we add the widget to the refresh queue. After that, it should pull the latest pictures from Instagram and fix your Instagram widget within a few minutes. Clearing the browser cache might speed up the process. 

We have a more detailed guide on restoring the connection between your Instagram account here – How to refresh the access token?

In the case of expiring tokens, there are two things you can do to make it happen less:

  1. You can set up expired token notifications if you have at least one widget with the upgrade add-on. Here you can find more details about this feature: What are token notifications?
  2. You can purchase the Image optimization add-on. Apart from performance features, the bonus is that the images will load even if the token is expired.

You are using improper embed code on your website.

If you purchased the widget upgrade add-on for your Instagram widget, please ensure you use the proper widget embed code on your website. 

Log in to your user account and go to the list of your widgets – My widgets. Click the Show more button next to the item on the list with the Upgraded status. 

Screenshot showing the Show more button on My Widgets list.

Compare the Embed code section snippet with the code you have pasted on your website. In case of any doubts, copy and paste the snippet.

If you use the free widget embed code with the upgrade add-on, especially if your website does not use the HTTPS protocol, it will cause errors. It is vital to use the embed code dedicated to your upgraded feed.

One of the extensions for your browser blocks the images. 

Please check if your browser is using any extra extensions. Some additional browser utilities, for instance, Facebook Container for Firefox, block the images outside the instagram.com and facebook.com domains. 

Adding cdn.lightwidget.com and lightwidget.com to the list of exceptions or disabling the browser add-on will solve the problem on your computer. 

Suppose you want to ensure that all visitors to your website can view the images, even if they have browser extensions that interfere with image loading. In that case, consider purchasing the Image Optimization add-on. With this add-on, the images are loaded from our domain, bypassing any potential issues caused by such extensions.

Comments (22)

  • I have refreshed my token. How long will it take for the updated images to reflect where my widget is embedded?

    tom

    • LightWidget profile picture

      It should be working within couple of minutes. Your widgets will be added to refresh queue and will pull latest pictures using new token. Please keep in mind that also clearing browser cache might help here:)

      LightWidget

  • Olá, Gostaria de saber se ele ficará em cima do rodapé da plataforma loja integrada?

    Beauty Shop-Apliques de Cabelo

    • LightWidget profile picture

      Hi there! Would you be able to send us a support ticket with your issue?

      LightWidget

  • My Instagram access token is not expired any more ... but I still have broken images.

    Grande Prairie REALTOR ® Kevin

    • LightWidget profile picture

      Hi there! Please keep in mind that we do not refresh your widget immediately with new token. All your widgets are added to our refresh queue with high priority. It make take a few minutes before they will update with new token. Also clearing browser cache might help here. In case you will still have issues with the images, please create a support ticket and provide us with the widget you have problem with. We will check it out on our side.

      LightWidget

  • My widget has an active token, but it is not displaying on my webpage.

    Miles Anderson

    • It was working fine up until a few days ago.

      Miles Anderson

    • It's working now. Thank you!

      Miles Anderson

  • LightWidget profile picture

    Hi there! Please make sure that you refreshed the cache of your browser. If it will not help, please drop us a support ticket with your widget ID. We will take a closer look:)

    LightWidget

  • I am about to upgrade so that expiring tokens are less of a hassle, but am worried that I will need to update the embed code every single time. Is that the case, or will the code I'm using be OK long-term?

    Athletic Republic Park City

    • LightWidget profile picture

      Hi there! After the upgrade you will receive an upgraded widget embed code. You will not have to update the code on your website. If the token expire you will have to only refresh the token, no need to change the embedded code on your website. It also works the same for free widgets. If the token expires you simply need to refresh the token. When you upgrade at least one widget, you will get the access to expired tokens notification. Once the token expire you will receive an e-mail with a link to refresh the token:)

      LightWidget

  • Seems like all images on lightwidget are broken. Is this plugin dead?

    idastanford

  • FYI, I had a plugin blocking the images on Firefox. This lightwidget plugin is still working fine!

    idastanford

  • I have an expired token using FB Business account, when I attempt to refresh the token, I go the FB prompts and says my connection is restored I then get an error page on LightWidgets website that says: Error code: 1075 Error details: Unable to refresh the access token. It seems that you never connected this Instagram account with the LightWidget before. Please log in to our website first to connect this account first." However, I have connected this account before. So when I try to reconnect, I still get the error.

    na***@mementotributes.com

    • I'm having the same issue. I've checked the previously linked Facebook account and it's still showing an active Business Integration with Lightwidget. But I get the 1075 error whenever I try to refresh the expired token with that FB account.

      ja***@virginia.edu

      • LightWidget profile picture

        Hi guys! Please ensure your Facebook user has a role on the Facebook page linked with the Instagram account. If you don't have the role, or someone changed the permissions to our app, we might not get the information from the API about your particular Instagram account. If you still have issues with refreshing the token, please drop us a support ticket.

        LightWidget

  • I can't refresh the expired token. It says: error_type "OAuthException" code 400 error_message "Your activity off Meta technologies is currently turned off." What can I do?

    in***@picsforyou.nl

  • Hello, since I updated my widget it loads perfectly on https version of my page but won't load on http version. It's not a big deal but a little bit anoying when I'm developing the site and want to see it on localhost...

    pr***@arach.cz

    • LightWidget profile picture

      Hi there! The easiest fix would be to use the proper embed code with the cdn prefix in the iframe URL. You can copy it from your widget info page. It will work both on HTTP and HTTPS. If you don't want to use the version from CDN, add the https: prefix before the iframe URL to force the HTTPS. It will also work fine on both protocols!

      LightWidget

You must be logged in to post comments.