Posts tagged with facebook-business-sdk

I am trying to create a workflow where based on user queries we send some products from the Facebook business catalog to WhatsApp as a single product and list product card as mentioned in the below link: https://developers.facebook.com/docs/whatsapp/guides/commerce-guides/share-products-with-customers

I have created a permanent access token using the system user and I am able to access the catalog and also the products inside the catalog with the access token.

Also using the same token I am able to send normal text and images on whatsapp. Now the issue is when I am trying to send specifically a product as an interactive card, I am getting the below mentioned issue.

{   "error": {     "message": "(#131009) Parameter value is not valid",     "type": "OAuthException",     "code": 131009,     "error_data": {       "messaging_product": "whatsapp",       "details": "Invalid catalog_id."     },     "error_subcode": 2494010,     "fbtrace_id": "AgVHaK1LySusku-_NFpkCNR"   } } 

But the catalog exists and I am also able to access products inside this catalog.

Fetching all the catalogs

Fetching products inside a catalog

Sending Messages as an interactive card for the catalog

We are building a e-retail bot on WhatsApp platform. I would like to understand if there is a possibility to integrate the Whatsapp Business Api with the product catalog option they provide in the WhatsApp for Business App.


WhatsApp Business API - https://www.whatsapp.com/business/api/?lang=en

WhatsApp for Business - https://www.whatsapp.com/business


The flow that I am looking for is

  1. We will list all the products available on the WhatsApp for Business App
  2. Build a conversation bot which uses WhatsApp Business API
  3. Using API from WhatsApp Business API, open a product catalog or send a message with a call to button which will open product description or cart.

Is this something that is possible?