Partial Outageshare-external
parameter messaging_product is required but it's in the body!
1

I keep getting this error below BUT I obviously have the messaging_parameter in my request! No idea what's wrong, I did make a template and wonder if my issues are there but it says active in my dashboard.

{
    "error": {
        "message": "(#100) The parameter messaging_product is required.",
        "type": "OAuthException",
        "code": 100,
        "fbtrace_id": "A300USus3beLWBQC0duX5eX"
    }
}

Here is my request:

curl --location 'https://graph.facebook.com/v20.0/325634810643905/messages' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API TOKEN>' \
--data '{      
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "19252508792",
    "type": "template",
    "template": {
       "name": "air_quality_message",
       "language": {
           "code": "en_US"
       },
       "components": [
         {
           "type": "body",
           "parameters": [
               {
                   "type": "text",
                   "text": "The air quality in New York City is good. It is safe to go outside."
               }
           ]
         }
       ]
    }
}
}'
Kyle
Asked about a month ago