2

According to the official documentation, the Generic Template should support sending multiple elements (up to 10) which are expected to be displayed as a carousel in the Instagram app.

However, when I send more than one element in the payload, only the first element is displayed in the chat, and the rest are ignored.

Here is a simplified version of the payload I’m sending:

{
  "recipient": { "id": "{{to}}" },
  "message": {
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "generic",
        "elements": [
          {
            "title": "Title 1",
            "image_url": "https://download.samplelib.com/gif/sample-animated-200x200.gif",
            "subtitle": "Subtitle 1",
            "default_action": {
              "type": "web_url",
              "url": "https://www.yahoo.com"
            },
            "buttons": [
              {
                "type": "web_url",
                "url": "https://www.google.com",
                "title": "Google"
              }
            ]
          },
          {
            "title": "Title 2",
            "image_url": "https://download.samplelib.com/jpeg/sample-birch-400x300.jpg",
            "subtitle": "Subtitle 2",
            "default_action": {
              "type": "web_url",
              "url": "https://consol.example.com"
            },
            "buttons": [
              {
                "type": "web_url",
                "url": "https://www.example.com",
                "title": "example"
              }
            ]
          },
          {
            "title": "Title 3",
            "image_url": "https://download.samplelib.com/jpeg/sample-birch-400x300.jpg",
            "subtitle": "Subtitle 3",
            "default_action": {
              "type": "web_url",
              "url": "https://consol.example.com"
            },
            "buttons": [
              {
                "type": "web_url",
                "url": "https://www.example.com",
                "title": "example 2"
              }
            ]
          }
        ]
      }
    }
  }
}

Expected Behavior: All elements (up to 10) should appear as a carousel that users can swipe through.

Actual Behavior: Only the first element is displayed in Instagram chat, and additional elements are not rendered (Android/v396.0.0.46.242).

IG-GenericTemplateCarousel

Question:

  1. Is the carousel display for multiple elements in the Generic Template currently supported on Instagram Messaging?
  2. Or is this a limitation/bug in the Instagram app implementation of the API?
  3. If it is supported, what changes are needed to get multiple elements displayed?

Update: as per comment below by @Utkarsh Rana and after testing carousel is working in Instagram iOS app.

2
  • Hi @someone, Did you find any solution? I am facing a similar issue on Android Instagram app. Though I am able to see the carousel in IOS app. Commented Sep 15 at 12:42
  • Facing the same issue Commented Sep 15 at 17:48

1 Answer 1

-1

This is more of a rant than an answer. I spent hours creating the application for the app on Meta Developers. Then waited for them to approve. Now that I have shipped my solution to my customers, I am constantly facing problems with their graph API. First, it was the echoes not working, and now the issue is with the generic template messages.

It's not a rant on them having bugs, but the absolute lack of care with their developer support. They have a highly inactive developer community forum where you never get an answer. If you go to report a bug on the platform, then..SURPRISE..you can't report a bug for Instagram Messaging.

What are we supposed to do here?

(I answered instead of commenting in the hope of gaining more visibility and helping others)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.