Facebook Messenger bot welcome message: 100 The parameter setting_type is required

user3198569 picture user3198569 · Apr 22, 2016 · Viewed 17.9k times · Source

I'm trying to set a welcome message for a Facebook Messenger bot using the code provided in the documentation - with my own page ID and page access token

curl -X POST -H "Content-Type: application/json" -d '{
  "setting_type":"call_to_actions",
  "thread_state":"new_thread",
  "call_to_actions":[{
      "message":{
          "text":"Hello! This is a Messenger bot!"
      }
  }]
}' "https://graph.facebook.com/v2.6/<PAGE_ID>/thread_settings?access_token=<PAGE_ACCESS_TOKEN>"

This returns the following:

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

Any ideas on how to solve this? Thanks.

Answer

electrobabe picture electrobabe · May 20, 2016

I had the same problem! Some strange copy/paste error with the cURL command from fb...

It didn't work with cURL, but then I used "Advanced REST client" (Chrome plugin) and I was able to set the Welcome Message.

FB welcome message in chrome addOn Advanced REST client