I'm trying to work with the WhatsApp business API, but When I try to send a message, always gives me this error with http code 400:

"message": "(#100) Tried accessing nonexisting field (messages) on node type (WhatsAppBusinessPhoneNumber)",

URL:

https://graph.facebook.com/v17.0/NUMBER_ID/messages?access_token=**ACCESS_TOKEN** 

Body:

{     "messaging_product": "whatsapp",     "to": "5**39&&&&&&1",     "type": "template",     "template": {         "name": "hello_world",         "language": {             "code": "en_US"         }     } } 

Response:

{     "error": {         "message": "(#100) Tried accessing nonexisting field (messages) on node type (WhatsAppBusinessPhoneNumber)",         "type": "OAuthException",         "code": 100,         "fbtrace_id": "Ai8BDTgVwlWuJo6QeTmqRB7"     } } 

Tag:facebook, whatsapp, whatsapp-cloud-api

Only one comment.

  1. Olfredos6

    This may sometimes happen due to invalid method type. Instead of sending a POSTrequest, one might be sending a GET inadvertently.

Add a new comment.