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.
There can be three reasons for that:
- The connection between our app and your Instagram account is expired.
- You are using improper embed code on your website.
- 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.
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:
- 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?
- 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.
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.