Instagram API Error Message Reference

If you receive an error message when trying to display your posts then you can use the table below to diagnose the issue and find the relevant solution.

Error Message Causes
API Error 400: The access_token provided is invalid.
  • Your Access Token is either incorrect, invalid or expired – See #1 below
Error: No posts found
  • User feed: The account has no posts made on Instagram.com
  • Recent hashtag feed: No posts have been made to this hashtag in the last 24 hours
  • You are using a lot of IGTV posts in your feed – See #4 below
  • Issue with your Access Token – See #1 below
  • Too much filtering with includewords, excludewords, whitelist, or blocking photos – See this FAQ
Connection Error: http_request_failed
  • http_request_failed – cURL error 7: Failed to connect to api.instagram.com port 443: Connection refused – See #2 below
  • http_request_failed – cURL error 6: Could not resolve host: graph.facebook.com – See #3 below

#1 – Your Access Token is either incorrect, invalid or expired

If your feed stops retrieving new posts your access token may have expired. This is something that Instagram does with no clear reason.

Solution:
You can get a new access token on the “Configure” tab. Try clicking the big blue button or use the “Button not working?” link to get an access token on smashbaloon.com that you can enter manually. If your access token frequently expires, try creating a business account using the steps in this FAQ and connecting your account as a business account.

#2 – Unable to connect an account

Some hosts have restrictions or security settings to prevent remote requests to other websites.

Solution:
Usually they can fix this or make an exception for your site. Try contacting your host with a message like this:

It looks like our Instagram plugin is encountering an error when trying to connect to the Instagram API. The developers asked us to contact you and mention that we are seeing the error http_request_failed – cURL error 7: Failed to connect to api.instagram.com port 443: Connection timed out when trying to make remote connections to api.instagram.com/.

#3 – Unable to connect to the Instagram/Facebook API

Your server may not be connected to the internet or your host may be blocking the connection. If you are using a local development environment, make sure you are connected to the internet.

#4 – Your account has a lot of IGTV posts

Instagram does not yet support IGTV posts in its API. However, these posts are still counted in the API request even if they aren’t returned. This can lead to the plugin thinking there are no posts available if all recent posts are IGTV posts.

Solution:
To fix this issue, go to the “Customize” tab inside the settings page for “Instagram Feed” and find the setting “API request size” and raise it to 25 or more depending on how often you use IGTV posts.

If you’re still having trouble displaying your posts after trying the common issues above then please contact support for assistance.