Instagram feed on your website, why photos don't show or you get "Error validating access token"

An Instagram feed on your website stops showing photos when the connection between the site and your Instagram account expires or is invalidated by Meta, usually after a password change or because it was not renewed in time. The fix is for the account owner to reconnect the account from the settings of the feed plugin. Today the connection only works with a professional Instagram account (Business or Creator), because Meta has retired the old connection method for personal accounts.

Why don't my Instagram photos show on my site

Your site does not store your photos permanently. It requests them from Meta using an access key, the access token, which is created when you connect the account. When that key stops being valid, the feed stays empty or shows an error message.

The usual causes are:

  • The password of the Instagram or Facebook account used for the connection was changed.
  • Meta invalidated the session for security reasons, for example after a suspicious login.
  • The token expired because it was not refreshed within its 60 days of validity.
  • The account is personal and the connection used the old Instagram Basic Display API, which no longer works.
  • The app's permission was removed from the Instagram or Facebook settings.
  • The person who made the connection through Facebook no longer has a role on the business's Facebook Page.
  • The feed plugin is an old version that does not support Meta's current API.

What does "Error validating access token" mean

The message comes from Meta, not from the hosting. It means the key your site sends is no longer valid. Meta logs it as error 190 and usually adds the reason.

The most common form is "The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons". This means the password changed or Meta closed the session for security reasons. Other messages say the token expired or was revoked. In every case Meta asks for the same thing: a new connection and a new token. A token that has expired cannot be brought back.

The server is not at fault. The plugin talks to Meta over HTTPS, on port 443, which is open on Konet's servers. A closed port affects other kinds of services, as we explain in the article on opening a firewall port.

What changed in Meta's Instagram API

On December 4, 2024, Meta shut down the Instagram Basic Display API. It was the way most sites displayed photos from personal accounts. Since then every request to it returns an error, so feeds that relied on it stopped working.

Today Meta gives access only through the Instagram API and only to professional accounts, Business or Creator. The connection is made in one of the following ways, depending on what the plugin supports:

  • Instagram Login. You log in with your Instagram credentials. No Facebook Page is needed.
  • Facebook Login. You log in with your Facebook credentials. The Instagram account must be linked to the business's Facebook Page and you must have a role on that Page.
  • Unified login. Meta recommends it for new apps, and it lets you log in with either Instagram or Facebook.

So the old advice that you always need a Facebook Page does not apply to every plugin. It applies only when the plugin connects through Facebook.

What you need today for your site to show photos from Instagram

  • A professional Instagram account, Business or Creator. Switching from personal to professional is free, from the account settings in the Instagram app.
  • The account owner available during the connection, with their password and mobile phone. If the account has two-factor authentication, the confirmation code goes to their phone.
  • If the plugin connects through Facebook, a Facebook Page linked to the Instagram account and an admin role on it.
  • An up-to-date feed plugin, on a version that supports the current Instagram API.
  • Access to the site's wp-admin.

How do I reconnect my Instagram account to my website

Connecting Instagram to your website is always done from the settings of the feed plugin. Button names differ from plugin to plugin, but the order is the same.

  1. Log in to wp-admin and update the feed plugin to the latest version. If you are worried the update might break something, first see how to restore WordPress if it breaks after an update.
  2. Open the plugin settings and find the list of connected accounts.
  3. Remove the old account or the connection that shows an error.
  4. Click the button to connect a new account and choose to connect with Instagram or with Facebook, whichever the plugin supports.
  5. Log in with the account credentials and type the confirmation code, if you are asked for one.
  6. Accept the permissions the app requests. Without them the feed cannot read the posts.
  7. Choose the Instagram account you want to display and save.
  8. Clear the site cache so visitors see the new feed. See how to clear the cache.
  9. Open the site in a private browsing window and check that the photos appear.

If the site has more than one feed, for example on the homepage and in the footer, check that all of them use the new connection.

How long the connection lasts and how the Instagram access token is refreshed

When you connect the account, Meta first issues a short-lived token that is valid for one hour. The plugin immediately exchanges it for a long-lived token, which is valid for 60 days. That token can be refreshed once it is at least 24 hours old and has not yet expired. Each refresh gives another 60 days.

Most plugins refresh the token automatically, using WordPress scheduled tasks. These run when the site receives visits. If the site had no visits for a long time, or if scheduled tasks are not running, the refresh may not happen and the token may expire. Then the only fix is a new connection.

Automatic refresh does not protect you from a password change or from Meta invalidating the session. Every time you change the password of the account used for the connection, expect to have to reconnect the feed.

What do I do if I can't reconnect the account

If the account owner is not available, or you don't want to switch the account to professional, remove the feed from the page. Delete the feed's block, widget or shortcode and, if you no longer need it, deactivate the plugin. In its place you can add a simple icon or button linking to your Instagram profile.

Don't leave the feed showing an error message. Visitors see a page that looks broken, and accessibility and quality checking tools count the error as a problem with the page. On a website funded through ESPA funding for businesses, accessibility is usually also an obligation of the funding action.

Frequently Asked Questions

I changed my Instagram password and the feed stopped, why?
A password change invalidates all sessions of the account, including the site's connection. That is why "The session has been invalidated" appears. Reconnect the account from the plugin settings.

Do I need a Facebook Page to put an Instagram feed on my site?
Only if the plugin connects through Facebook. With a connection through Instagram, a professional Instagram account, Business or Creator, is enough.

Can I use a personal Instagram account?
No. Since December 4, 2024, Meta does not allow third-party sites to read posts from personal accounts. Switch the account to Business or Creator and connect it again.

Can Konet connect the account for me?
The connection is made with the Instagram or Facebook account credentials and often with a code sent to the owner's phone, so the owner has to do it personally. Never send social media passwords in a ticket. Plugin settings are not included in hosting support, see what hosting support covers.

Does the Instagram feed in WordPress slow down my site?
It can, because the plugin requests data from Meta's servers. Good plugins keep a local copy of the posts and images so they don't query Meta on every visit. With the X-Ray App you can see whether the external call is delaying the page. See also why a WordPress site is slow.

I reconnected the account but the photos still don't show, what's wrong?
Usually you are still seeing the old page from the cache. Clear the site and browser cache and check in a private window. If it stays empty, check that the feed uses the new account and that the account has posts.

Was this article helpful?

Related service Konet Web Hosting cPanel, LiteSpeed and automatic backups: 24 every 2 hours for 48 hours, then 6 daily, 4 weekly and 3 monthly.