Posts tagged with facebook-business-manager

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

I have setup a two way communication between business account and customer using whatsapp business apis. I am having trouble understanding media providers that there documentation talks about for sending text message to customer with image/media.

Heres the link to it: https://developers.facebook.com/docs/whatsapp/api/settings/media-providers/

Who are these providers? are they some specified organisation?

I am currently storing the media files in AWS S3 using some pre-signed url method. Can I use media stored in S3 in whatsapp media message?.

An example would be great help.

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?

I had cloned these file as per facebook instructions

And then Step 1: Create a biz Directory for the Setup Scripts

mkdir ~/biz; cd ~/biz; 

Step 2: Get the WhatsApp Business API Client Configuration Files

   db.env docker-compose.yml multiconnect-compose.yml 

Step 3: Set the WA_API_VERSION Environment Variable

export WA_API_VERSION=2.31.5 

Step 4: Start the WhatsApp Business API Client

docker-compose up -d 

The resulting output should look like the following:

Recreating whatsbusinessapi_db_1 ... done Creating whatsbusinessapi_wacore_1 ... done Creating whatsbusinessapi_waweb_1  ... done 

Step 5: Verify Containers Are Running

docker-compose ps 

output :

          Name                         Command               State                     Ports                    --------------------------------------------------------------------------------------------------------------- whatsbusinessapi_db_1       docker-entrypoint.sh -p 54 ...   Up      5000/tcp, 5432/tcp, 0.0.0.0:5000->6000/tcp whatsbusinessapi_wacore_1   /opt/whatsapp/bin/wait_on_ ...   Up      6250/tcp, 6251/tcp, 6252/tcp, 6253/tcp     whatsbusinessapi_waweb_1    /opt/whatsapp/bin/wait_on_ ...   Up      0.0.0.0:9090->443/tcp 

By default, the Webapp container will be running on port 9090 (https://localhost:9090) as per facebook but when i tried https://localhost:9090

So anyone have idea please.