Sending Whatsapp Messages

Are you able to help with this Whatsapp API ? :pray: I’ve been stuck for 3 days now :exploding_head:

  • What I’m trying to achieve: initialize my whatsapp api call “sendwhatsappmessage”

  • What is wrong: I’m always getting this error message
    Status code 400
    {“error”:{“message”:“(#100) Invalid parameter”,“type”:“OAuthException”,“code”:100,“error_data”:{“messaging_product”:“whatsapp”,“details”:“Parameter name is missing or empty”},“fbtrace_id”:“AOdQ7oZqttBbWFHKVbSkhTL”}}

  • My whatsapp template has been approved, cfr. screenshots attached.

  • I’m using the Access Token and Phone number ID from API Set up in Meta App Dashboard.

I don’t understand why can be wrong here. If someone has the answer, I’d be so grateful!




what chatgpt tells?

Have you tried sending the same request from another client, say Postman?

turning in circle, giving me json that doesn’t work

Clearly issue with your parameters value, it’s not accepting that type text and text Denis

My gut tells me with how you are setting up the API call, you should use numbers as variables, then it would work perfectly~

One thing I noticed right away was that you’re not providing the parameter names inside your body, just the type and value. Parameters are usually composed of name, type and value… There seems to be something wrong with the way you are sending these parameters.

Can you share the link of the documentation of this endpoint?

@rpetribu from what I see in documentation, this is how it work! no parameters name. Seem that whatsapp just fill parameters in order.
What I’m wondering now is if you need to provide all parameters to make it work. Actually, screenshot show you are providing 3 but the template have 5…

1 Like

Hummmmm I never worked directly with meta’s API, so it sounded strange to me. And thinking about it.. the way the parameters are sent seems odd to me :sweat_smile:

But thanks for the info :folded_hands:

1 Like

Thanks all for chipping in. So I could resolve the situation only by changing from name variables to number variables. I could never understand why name variables don’t work or how to use them and chatgpt seems confused about it. Number variables work and there isn’t any apparent upside from using name variables. So there is my recommendation for anyone setting this up in the future :sweat_smile:

1 Like