Last active
June 12, 2017 20:02
-
-
Save eisenjulian/0e07f0e742d38393c1a082b2fd2b4511 to your computer and use it in GitHub Desktop.
Facebook Messenger Quick Replies template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -H "Content-Type: application/json" -d '{ | |
"recipient":{ | |
"id":"USER_ID" | |
}, | |
"message":{ | |
"text":"Pick a color:", | |
"quick_replies":[ | |
{ | |
"content_type":"text", | |
"title":"Red", | |
"payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_RED" | |
}, | |
{ | |
"content_type":"text", | |
"title":"Green", | |
"payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_GREEN" | |
} | |
] | |
} | |
}' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment