Send Commerce Manager catalog product using WhatsApp Cloud API

Viewed 284

After successfully adding my catalog from Commerce manager to Whatsapp manager, now I want to send the user this product via WhatsApp cloud API, I have seen the link which is related to the on-permises API, but found no luck.

https://developers.facebook.com/docs/whatsapp/guides/commerce-guides/share-products-with-customers.

my request body code so far:

https://graph.facebook.com/v13.0/{{Phone-Number-ID}}/messages

{
"interactive": {
    "messaging_product": "whatsapp",
    "to": "9***********",
    "type": "product",
    "body": {
      "text": "text-body-content"
    },
    "footer": {
      "text": "text-footer-content"
    },
    "action": {
      "catalog_id": "11111111111111",
      "product_retailer_id": "2222"
    }
  }
}

error:

 {
    "error": {
        "message": "(#100) The parameter messaging_product is required.",
        "type": "OAuthException",
        "code": 100,
        "fbtrace_id": "AZ-AFvM-Nsnm62de34st5mMJxzJ"
    }
}

another request

{ 
    "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to" : "**********",
  "type": "interactive",
  "interactive": {
    "type": "product",
    "body": {
      "text": "body text"
    },
    "footer": {
      "text": "footer text"
    },
    "action": {
      "catalog_id": "1968701893374783",
      "product_retailer_id": "5493"
    }
  }
}

Result: {
    "error": {
        "message": "(#131009) Parameter value is not valid",
        "type": "OAuthException",
        "code": 131009,
        "error_data": {
            "messaging_product": "whatsapp",
            "details": "Interactive Message type,  'product' not supported. Supported types ['button', 'list']"
        },
        "error_subcode": 2494010,
        "fbtrace_id": "AntQdhmCkgZ0Xtaz643Bgq"
    }
}
1 Answers

Update:

It is supporting from Aug 25, 2022,

You can now include products and services in messages sent to customers, and customers can add them to shopping carts without having to leave the chat thread. Refer to the Sell Products & Services guide to learn how to send Single and Multi-Product messages to customers.


There is no support for product and product_list types in Cloud API, but you can use it in On-Premises API,

Might be it is still in development, You can track the conversations in Facebook Community,

Related