Instagram API Error ReferenceComplete troubleshooting guide with solutions

Comprehensive reference for Instagram API errors. Find solutions and troubleshoot common integration issues.

32error codes
8categories
Graph API v19.0

Error Categories

Authentication

5 errors

Media Upload

8 errors

Media Format

8 errors

Content

3 errors

Carousel

1 error

Product Tagging

4 errors

Rate Limiting

2 errors

Server

1 error

All Error Codes

#Authentication

REVOKED_ACCESS_TOKENrefresh-token

Instagram access token has been revoked. Please reconnect your Instagram account.

Solution:

Your Instagram access token was revoked. This happens when you remove app permissions from your Instagram settings. Go to your account settings and reconnect Instagram with all required permissions.

session has been invalidatedrefresh-token

Your Instagram session has expired. Please reconnect your Instagram account.

Solution:

Your Instagram session is no longer valid. This can happen after a password change or security check. Reconnect your Instagram account to establish a new session.

the user is not an instagram businessrefresh-token

Your Instagram account must be a Business account. Please convert it to a Business account and reconnect.

Solution:

Instagram API requires a Business or Creator account. Convert your account: Go to Instagram Settings → Account → Switch to Professional Account → Choose Business.

2207050user-error

Your Instagram account has been restricted. Please check your account status on Instagram.

Solution:

Instagram has restricted your account. Log into Instagram directly to see if there are any warnings or restrictions. You may need to verify your identity or appeal the restriction.

Not enough permissions to postuser-error

Not enough permissions to post.

Solution:

The app doesn't have required permissions. When reconnecting, ensure you grant all permissions, especially 'instagram_content_publish' and 'instagram_basic'.

#Media Upload

2207003user-error

Timeout downloading media, please try again.

Solution:

Instagram couldn't download your media from the URL within the timeout period. Ensure your media URL is publicly accessible and the server is responding quickly. Try re-uploading.

2207020user-error

Media expired, please upload again.

Solution:

The media container expired before publishing. Instagram media containers expire after 24 hours. Create a new media container and publish it immediately.

2207032user-error

Failed to create media, please try again.

Solution:

Instagram failed to create the media container. This could be a temporary issue. Wait a moment and try again. Ensure your media meets Instagram's specifications.

2207053user-error

Unknown upload error, please try again.

Solution:

An unknown error occurred during upload. Check that your media file is valid and meets Instagram's requirements. Try uploading a different file to isolate the issue.

2207052user-error

Media fetch failed, please try again.

Solution:

Instagram couldn't fetch your media from the provided URL. Verify the URL is publicly accessible, returns the correct content-type header, and the file is valid.

2207006user-error

Media not found, please upload again.

Solution:

The media container was not found. It may have been deleted or expired. Create a new media container and try again.

2207008user-error

Media builder expired, please try again.

Solution:

The media builder session expired. This happens if too much time passed between creating the container and publishing. Create and publish in one flow.

2207027user-error

Unknown error, please try again later or contact support.

Solution:

An unknown error occurred. Wait a few minutes and try again. If the issue persists, contact support with the full error details.

#Media Format

2207004user-error

Image is too large.

Solution:

Reduce your image file size. Instagram has a maximum file size of 8MB for images. Use an image compression tool to reduce the file size while maintaining quality.

2207005user-error

Unsupported image format.

Solution:

Instagram only supports JPG and PNG image formats. Convert your image to one of these formats before uploading.

2207009user-error

Aspect ratio not supported (must be between 4:5 and 1.91:1).

Solution:

Instagram requires aspect ratios between 4:5 (portrait) and 1.91:1 (landscape). Crop or resize your image to fit within these limits.

36003user-error

Aspect ratio not supported (must be between 4:5 and 1.91:1).

Solution:

Your image aspect ratio is outside Instagram's allowed range. Use 1:1 (square), 4:5 (portrait), or 1.91:1 (landscape). Avoid extreme aspect ratios.

36001user-error

Invalid Instagram image resolution max: 1920x1080px.

Solution:

Instagram limits image resolution to 1920x1080 pixels. Resize your image to fit within these dimensions.

2207026user-error

Unsupported video format.

Solution:

Instagram only supports MP4 video format with H.264 codec and AAC audio. Convert your video to meet these specifications.

2207057user-error

Invalid thumbnail offset for video.

Solution:

The thumbnail offset you specified is invalid. It must be within the video duration. Use a value between 0 and the video length in milliseconds.

2207023user-error

Unknown media type.

Solution:

Instagram couldn't determine your media type. Ensure you're specifying the correct media_type parameter (IMAGE, VIDEO, or CAROUSEL_ALBUM).

#Content

2207010user-error

Caption is too long.

Solution:

Instagram captions have a maximum length of 2,200 characters. Shorten your caption and try again.

2207001user-error

Instagram detected that your post is spam. Try changing the content.

Solution:

Instagram's spam detection flagged your content. Avoid repetitive posts, excessive hashtags, or spammy language. Wait a while and try posting different content.

2207051user-error

Instagram blocked your request.

Solution:

Instagram blocked this request, likely due to rate limiting or suspicious activity. Wait 15-30 minutes before trying again and reduce posting frequency.

#Product Tagging

2207035user-error

Product tag positions not supported for videos.

Solution:

You cannot specify product tag positions for video posts. Only image posts support positioned product tags.

2207036user-error

Product tag positions required for photos.

Solution:

When tagging products in photos, you must specify x and y coordinates for tag positions. Provide position data for all product tags.

2207037user-error

Product tag validation failed.

Solution:

One or more product tags are invalid. Verify that all product IDs exist in your catalog and position coordinates are between 0.0 and 1.0.

2207040user-error

Too many product tags.

Solution:

Instagram limits the number of product tags per post. Reduce the number of products you're tagging (maximum is typically 5 products per image).

#Rate Limiting

Page request limit reacheduser-error

Page posting for today is limited, please try again tomorrow.

Solution:

You've reached Instagram's daily posting limit. Instagram allows 25 posts per day. Wait until the next day to post more content.

2207042user-error

You have reached the maximum of 25 posts per day allowed for your account.

Solution:

Instagram enforces a 25 posts per day limit. Wait until tomorrow to post more content. Consider scheduling your posts to spread them across multiple days.

#Server

An unknown error occurredretry

Instagram encountered an unknown error, retrying...

Solution:

Instagram experienced a temporary error. The system will automatically retry. If it continues failing, wait a few minutes before trying again.

Best Practices

Error Handling

  • Implement automatic retries for rate limit and service errors
  • Store refresh tokens securely and handle token refresh flows
  • Log all errors with context for debugging
  • Show user-friendly error messages in your UI

Prevention Tips

  • Validate content before sending to Instagram API
  • Compress images and optimize media before upload
  • Implement rate limiting in your application
  • Follow Instagram Community Guidelines and Terms of Service

Need Help with Instagram Integration?

Our API handles all these error scenarios automatically with smart retry logic and detailed logging.