how to setup "Get started" button in facebook messenger bot and when to send welcome message

kanth picture kanth · Jun 27, 2016 · Viewed 25.4k times · Source

Answer

Vaibhav Bansal picture Vaibhav Bansal · Jul 1, 2016

Make a POST call to API JSON body as below.

curl -X POST -H "Content-Type: application/json" -d '{
"setting_type":"call_to_actions",
"thread_state":"new_thread",
"call_to_actions":[
 {
  "payload":"USER_DEFINED_PAYLOAD"
 }
]
}' "https://graph.facebook.com/v2.6/me/thread_settings?access_token=PAGE_ACCESS_TOKEN"

Ref: Facebook messenger get started button

Postman screentshot