This document describes the error messages that can be returned by the Instragram API. The sample response below shows an example of code 3600
and subcode 2207004
with the subsequent error codes defined.
{ "error": { "message": "The image size is too large.", "type": "OAuthException", "code": 36000, "error_subcode": 2207004, "is_transient": false, "error_user_title": "Image size too large", "error_user_msg": "The image is too large to download. It should be less than 8 MiB.", "fbtrace_id": "A6LJylpZRKw2xKLFsAP-cJh" } }
HTTP Status Code | Code | Subcode | User Message | Recommended Solution |
---|---|---|---|---|
|
|
|
| A timeout occured while downloading the media. Try again. |
|
|
|
| Generate a new container ID and use it to try again. |
|
|
| Instagram server error. Try again. | |
|
|
|
| Failed to create a media container. Try again. |
|
|
|
| An unknown error occured during upload. Generate a new container and use it to try again. This should only affect video uploads. |
|
|
|
| The thumbnail offset you entered is out of bounds for the video duration. Add the right offset in milliseconds. |
|
|
|
| The publishing action is suspected to be spam. We restrict certain activity to protect our community. Let us know if you can determine that the publishing actions is not spam. |
|
|
|
| The app user has reached their daily publishing limit. Advise the app's user to try again the following day. |
|
|
|
| Possible permission error due to missing permission or expired token. Generate a new container and use it to try again. |
|
|
|
| Temporary error publishing a container. Try again 1–2 times in the next 30 seconds to 2 minutes. If unsuccessful, generate a new container ID and use it to try again. |
|
|
|
| The app user's Instagram Professional account is inactive, checkpointed, or restricted. Advise the app user to sign in to the Instagram app and complete any actions the app requires to re-enable their account. |
|
|
|
| The media type entered is not one of the expected media types. Please enter the correct one. |
|
|
|
| Try again using an acceptable number of photos/videos. |
|
|
|
| Videos do not support X/Y coordinates. Disallow X/Y coordinates with videos. |
|
|
|
| Image product tags must include X/Y coordinates. Require X/Y coordinates for images. |
|
|
|
| One or more of the products being used to tag the item is invalid (deleted, rejected, app user lacks permission, product ID is invalid, etc.). Get the app user's catalogs and eligible products again and allow the app user to only use those product IDs when tagging. |
|
|
|
| The app user exceeded the maximum number (20) of @ tags. Advise user to use fewer @ tags. |
|
|
|
| Unsupported video format. Advise the app user to upload an MOV or MP4 (MPEG-4 Part 14). See Video Specifications. |
|
|
|
| The media could not be fetched from the supplied URI. Advise the app user to make sure the URI is valid and publicly available. |
|
|
|
| Check the container status and publish when its status is |
|
|
|
| Image exceeded maximum file size of 8MiB. Advise the user to try again with a smaller image. |
|
|
|
| Possible permission error due to missing permission or expired token. Generate a new container and use it to try again. |
|
|
|
| The image's aspect ratio does not fall within our acceptable range. Advise the app user to try again with an image that falls withing a 4:5 to 1.91:1 range. |
|
|
|
| The user exceeded the maximum amount of characters for a caption. Advise user to use a shorter caption. Maximum 2,200 characters, 30 hashtags, and 20 @ tags. |