Search code examples
instagram-graph-api

Graph API to create multiple image post (carusel feature) on Instagram


I'm using GRAPH API to publish instagram posts which do work fine: To store an image:

POST request to https://graph.facebook.com/v12.0/...someid.../media

To publish an Instagram post using the image:

POST request to https://graph.facebook.com/v12.0/...someid.../media_publish?creation_id=...someresourceid..."

My question is, how can I publish an instagram post containing multiple images that a user can switch between the images with the carusel feature?


Solution

    1. Create 2-10 item containers
    2. Create a carousel container containing those item containers
    3. Publish the carousel container

    Full instructions and example: https://developers.facebook.com/docs/instagram-api/guides/content-publishing#carousel-posts