Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 944
user3198569 Avatar asked Apr 22 '16 21:04

user3198569


1 Answers

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

like image 81
electrobabe Avatar answered Oct 19 '22 17:10

electrobabe