Bad request - please check your parameters (#100) The parameter recipient is required

Query Parameters JSON 1:

{
  "recipient": {
    "id": "{{ $('Webhook1').item.json.body.entry[0].messaging[0].sender.id }}"
  },
  "message": {
    "text": "default response message"
  }
}

Query Parameters JSON 2:

{
  "recipient": {
    "id": "{{ $('Webhook1').item.json.body.entry[0].messaging[0].sender.id }}"
  },
  "message": {
    "text": "{{ $json.response_message }}"
  }
}

why Query Parameters JSON 1 work well but Query Parameters JSON 2 not work. (only change is “text”).

Error:
Bad request - please check your parameters
(#100) The parameter recipient is required
From Facebook Graph API

Error code

400

Full message

{ "error": { "message": "(#100) The parameter recipient is required", "type": "OAuthException", "code": 100, "fbtrace_id": "AplAsco33dClH11xIsrzdjm" } }

Help me fix that pls.

hello @Vinh

Replace the item.json with first().json

1 Like

workflow 1 is not work.

but workflow 2 work well. the only different is response_message in node “edit field 2”.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.