Yes, those are the logs I’ve sent you from day 1.
And I can send a message using curl and the same access token configured on Botpress just fine:
curl --request POST -H 'Content-Type: application/json' --url https://graph.facebook.com/v16.0/***********/messages?access_token=****************************************** --data '{"messaging_product":"whatsapp","to":"***********","type":"text","text":{"body":"test"}}' -v
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 2a03:2880:f091:19:face:b00c:0:2:443...
* TCP_NODELAY set
* Connected to graph.facebook.com (2a03:2880:f091:19:face:b00c:0:2) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: C=US; ST=California; L=Menlo Park; O=Meta Platforms, Inc.; CN=*.facebook.com
* start date: Feb 2 00:00:00 2023 GMT
* expire date: May 3 23:59:59 2023 GMT
* subjectAltName: host "graph.facebook.com" matched cert's "*.facebook.com"
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
* SSL certificate verify ok.
> POST /v16.0/***********/messages?access_token=******************************************* HTTP/1.1
> Host: graph.facebook.com
> User-Agent: curl/7.65.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 90
>
* upload completely sent off: 90 out of 90 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
< Vary: Origin
< x-business-use-case-usage: {"***********":[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}
< x-fb-rlafr: 0
< Access-Control-Allow-Origin: *
< facebook-api-version: v16.0
< Strict-Transport-Security: max-age=15552000; preload
< Pragma: no-cache
< Cache-Control: private, no-cache, no-store, must-revalidate
< Expires: Sat, 01 Jan 2000 00:00:00 GMT
< x-fb-request-id: AR7sgB9K9p2ExNx-jkpG3Zy
< x-fb-trace-id: HhJfpbX8vd4
< x-fb-rev: 1007375234
< X-FB-Debug: kwvhFXZfTkmLSpRvR2mQNZ922PzvPFIU10HYBk2RR2zoPlCB/GxjhDjDf3OY23wDP9FSxjMJk0DgMcHiCiGQqQ==
< Date: Tue, 25 Apr 2023 18:47:06 GMT
< Alt-Svc: h3=":443"; ma=86400
< Connection: keep-alive
< Content-Length: 179
<
* Connection #0 to host graph.facebook.com left intact
{"messaging_product":"whatsapp","contacts":[{"input":"***********","wa_id":"***********"}],"messages":[{"id":"wamid.HBgMNTU3Mzk4MzE0NzU5FQIAERgSQ0I4RDIwMkZDQTdDNTYzREJEAA=="}]} ✔