Skip to content

Instantly share code, notes, and snippets.

@matmuenzel
Last active August 8, 2018 13:52
Show Gist options
  • Select an option

  • Save matmuenzel/b531c7c04c9f5d78e43cbd2f7fd96253 to your computer and use it in GitHub Desktop.

Select an option

Save matmuenzel/b531c7c04c9f5d78e43cbd2f7fd96253 to your computer and use it in GitHub Desktop.
curl -X POST -H "Content-Type: application/json" -d '{
"persistent_menu":[
{
"locale":"default",
"composer_input_disabled":false,
"call_to_actions":[
{
"type":"postback",
"title":"Sample action",
"payload": "random payload, lel"
}
]
} ]
}' "https://graph.facebook.com/v3.1/me/messenger_profile?access_token=<PageAccessToken"
curl -X DELETE -H "Content-Type: application/json" -d '{
"fields":[
"persistent_menu"
]
}' "https://graph.facebook.com/v3.1/me/messenger_profile?access_token=PAGE_ACCESS_TOKEN"
curl -X POST -H "Content-Type: application/json" -d '{
"get_started":{
"payload":"random payload, lel"
}
}' "https://graph.facebook.com/v3.1/me/messenger_profile?access_token=<PageAccessToken>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment