Product Template

Product Templates can be utilized to send specific products to users, the message will show up as a carousel where users will swipe to see each product. Up to 10 products can be placed in a single product template Marketing Message.

product_ids can be obtained via Catalog API or via Facebook Commerce Manager. Product template only supports product_ids owned by the same page.

{
  "message_id": "<MESSAGE_ID>",
  "messenger_delivery_data": {
    "subscription_token": "<SUBSCRIPTION_TOKEN>"
  },
  "message":{
    "attachment": {
      "type": "template",
      "payload": {
        "template_type": "product",
        "elements": [
          {
            "id": "<PRODUCT_ID>"
          },
          {
            "id": "<PRODUCT_ID>"
          },
          {
            "id": "<PRODUCT_ID>"
          }
        ]
      }
    }
  }
}