Instagram error 24: Media builder does not exist or has expired (2207008)
Last verified against Meta for Developers - Messenger Platform error codes
The media builder with creation id = {creation-id} does not exist or has been expired.What error 24 means
Code 24 with subcode 2207008 means media_publish could not find a usable container for the creation_id you sent. Meta calls the container a "media builder" in this message. Either the ID never referred to a container on this account, or the container existed but is no longer publishable.
Meta classifies this one as a temporary error in its recommended solution: try again one or two times over the next 30 seconds to 2 minutes, and if that still fails, generate a new container ID and use that. The short retry covers the case where a freshly created container has not propagated yet. The longer path covers expiry - the IG User media reference states that containers expire after 24 hours, and a container that is never published inside that window cannot be revived.
Schedulers are the usual victims. An app that creates containers when a user drafts a post, then publishes at the scheduled time a day or more later, is publishing a container that has already lapsed.
What it looks like
{
"error": {
"type": "OAuthException",
"code": 24,
"error_subcode": 2207008,
"error_user_msg": "The media builder with creation id = 17889455560051444 does not exist or has been expired.",
"fbtrace_id": "Bv7Kq2LwXcNp0Ra"
}
}Why it happens
- The container was created more than 24 hours before the publish attempt and has expired.
- Publish was called within moments of container creation, before the container became visible to media_publish.
- The creation_id belongs to a different Instagram account than the IG_ID in the publish URL.
- The ID was truncated or mangled in storage, for example parsed as a float and rounded.
- The container was already published, so the same creation_id was reused for a second publish.
How to fix Instagram error 24
- 1Retry the same publish once or twice over the next 30 seconds to 2 minutes, as Meta advises.
- 2Check
GET /<IG_CONTAINER_ID>?fields=status_code;EXPIREDorPUBLISHEDmeans the ID cannot be used again. - 3Create a fresh container with the same media URL and caption, then publish the new ID.
- 4Verify the IG_ID in the publish path matches the account the container was created on.
- 5Store container IDs as strings end to end so no digits are lost.
How to stop it recurring
For scheduled posts, store the media URL and caption at draft time and create the container shortly before the publish slot, never a day ahead. Record each container's creation time and refuse to publish anything older than 24 hours without rebuilding it. Mark containers as consumed after a successful publish so a retry layer cannot replay them. The not-ready twin of this error is 9007/2207027.
Official reference: Meta for Developers - Messenger Platform error codes. See all Instagram error codes or the Instagram limits and quotas.
Related codes
- 9007: Media is not ready for publishing (2207027)The media is not ready for publishing, please wait for a moment
- -2: Media has expired - upload again (2207020)The media you are trying to access has expired. Please try to upload again.
- 24: Media cannot be found (2207006)The media with {media-id} cannot be found
Error 24 - quick answers
What does Instagram error 24 mean?
Code 24 with subcode 2207008 means media_publish could not find a usable container for the creation_id you sent. Meta calls the container a "media builder" in this message. Either the ID never referred to a container on this account, or the container existed but is no longer publishable.
How do I fix Instagram error 24?
1. Retry the same publish once or twice over the next 30 seconds to 2 minutes, as Meta advises. 2. Check GET /<IG_CONTAINER_ID>?fields=status_code ; EXPIRED or PUBLISHED means the ID cannot be used again. 3. Create a fresh container with the same media URL and caption, then publish the new ID. 4. Verify the IG_ID in the publish path matches the account the container was created on. 5. Store container IDs as strings end to end so no digits are lost.
Can I retry after error 24?
Yes - this is a retryable condition. Back off (start around one second and double on each attempt, with jitter) and watch for a retry-after hint from the platform before resending.
Stop debugging Instagram by hand
Connect the channel through Conferbot: tokens, webhooks and retries are handled, failures show as readable status.