skip to Main Content

I want to publish a story on my instagram account.

So I use the new Instagram API with Instagram login (https://developers.facebook.com/docs/instagram-platform/instagram-api-with-instagram-login/migration-guide)

I can get a token and create a media container, but when I want to publish the media the API returns an error.

I did the following:
First I created a media container

https://graph.instagram.com/v20.0/{IG_USER_ID}/media?access_token={ACCESS_TOKEN}

{
    "image_url": "https://example.com/example.jpg"
}

A media containerId is returns, so this is working as expected.

Than I use the media containerId to publish the media:

https://graph.instagram.com/v20.0/{IG_USER_ID}/media_publish?access_token={ACCESS_TOKEN}

{
    "creation_id": 12345
}

I expect a success, but I get the following response:

{
    "error": {
        "message": "The requested resource does not exist",
        "type": "OAuthException",
        "code": 24,
        "error_subcode": 2207008,
        "is_transient": false,
        "error_user_title": "Media Builder not found",
        "error_user_msg": "De Media Builder with creation-ID 12345 does not exist or is expired.",
        "fbtrace_id": "AY5DQvsrevDfesaMiZNL-7"
    }
}

I know a facebook page was required in the past, but with the new Login with Instagram feature this should work.

Has someone the same problem and solved this already?

2

Answers


  1. I have the same error.
    Steps i did:

    • get a long live token
    • successfully create a container

    when i make the post to publish container, i get:

    "message":"The requested resource does not exist","type":"OAuthException","code":24,"error_subcode":2207008,"
    

    also, if i make a get to check container status:

    https: //graph .instagram.com/ '+api_version+'/'+creation_id' (as per documentation) i get:
    
    {"error":{"message":"Application does not have the capability to make this API call.","type":"IGApiException","code":3
    

    going to error pages, on meta , i find this:

    00 24 2207008
    
    The media builder with creation id = {creation-id} does not exist or has been expired.
    
    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.
    

    so…problem should not be auth. i’m kinda stuck here…

    Login or Signup to reply.
  2. I have same issues too. I think it is Instagram API’s internal error..
    I wasted a lot of times to solve this problem.

    I made discord channel to share trials and fails.
    Please come in and communicate for reducing wasted time!

    https://discord.gg/h6KtdWdf

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search