{ "text": "Welcome to our store!" }
[ { "text": "Welcome to our store!" }, { "text": "Here is the listing of your products" }, .. ]
{ "attachment": { "type": "image", "payload": { "url": "https://petersapparel.parseapp.com/img/item101-thumb.png" } } }
{ "attachment": { "type": "video", "payload": { "url": "https://petersapparel.parseapp.com/img/item101-video.mp4" } } }* video should be in MP4 format and no larger than 20MB.
{ "attachment": { "type": "audio", "payload": { "url": "https://archive.org/download/Dictaphones_Lament/TychoDictaphones_Lament.mp3" } } }* audio should be in MP3, OGG, WAW format, and no larger than 10MB.
{ "attachment": { "type": "template", "payload": { "template_type": "button", "text": "Hello!", "buttons": [ { "type": "web_url", "url": "https://petersapparel.parseapp.com/buy_item?item_id=100", "title": "Buy Item" } ] } } }
{ "attachment": { "type": "template", "payload": { "template_type": "generic", "elements": [ { "title": "Classic White T-Shirt", "image_url": "http://petersapparel.parseapp.com/img/item100-thumb.png", "subtitle": "Soft white cotton t-shirt is back in style", "buttons": [ { "type": "web_url", "url": "https://petersapparel.parseapp.com/view_item?item_id=100", "title": "View Item" }, { "type": "web_url", "url": "https://petersapparel.parseapp.com/buy_item?item_id=100", "title": "Buy Item" } ] }, { "title": "Classic Grey T-Shirt", "image_url": "http://petersapparel.parseapp.com/img/item101-thumb.png", "subtitle": "Soft gray cotton t-shirt is back in style", "buttons": [ { "type": "web_url", "url": "https://petersapparel.parseapp.com/view_item?item_id=101", "title": "View Item" }, { "type": "web_url", "url": "https://petersapparel.parseapp.com/buy_item?item_id=101", "title": "Buy Item" } ] } ] } } }Keep in mind that you can combine several messages in one answer by sending several dictionaries in the messages array.
{ "text": "testRedirectInQuickReply", "quick_replies": [ { "content_type": "text", "title": "go", "payload": "1231414141" } ] }Note: Quick replies can be used with template types of responses as well. So feel free to be creative.
{ "attachment": { "payload": { "template_type": "button", "text": "Weburl", "buttons": [ { "url": "http://pastebin.com/raw/bYwUN7un", "type": "web_url", "title": "Open" } ] }, "type": "template" } }
{ "attachment": { "type": "template", "payload": { "template_type": "generic", "elements": [ { "title": "Classic White T-Shirt", "image_url": "http://petersapparel.parseapp.com/img/item100-thumb.png", "subtitle": "Soft white cotton t-shirt is back in style", "buttons": [ { "type": "phone_number", "phone_number": "+79268881413", "title": "Call" }, { "type": "element_share" } ] } ] } } }
{ "attachment": { "type": "template", "payload": { "template_type": "receipt", "recipient_name": "John Doe", "order_number": "12345678902", "currency": "USD", "payment_method": "Visa 2345", "timestamp": "1428444852", "address": { "street_1": "1 Hacker Way", "street_2": "", "city": "Menlo Park", "postal_code": "94025", "state": "CA", "country": "US" }, "summary": { "subtotal": 75, "shipping_cost": 4.95, "total_tax": 6.19, "total_cost": 56.14 }, "adjustments": [ { "name": "New Customer Discount", "amount": 20 }, { "name": "$10 Off Coupon", "amount": 10 } ], "elements": [ { "title": "Classic White T-Shirt", "image_url": "http://petersapparel.parseapp.com/img/whiteshirt.png", "subtitle": "100% Soft and Luxurious Cotton", "quantity": 2, "price": 50, "currency": "USD" }, { "title": "Classic Grey T-Shirt", "image_url": "http://petersapparel.parseapp.com/img/grayshirt.png", "subtitle": "100% Soft and Luxurious Cotton", "quantity": 1, "price": 25, "currency": "USD" } ] } } }* Please note that the share button works only in gallery cards due to Facebook API constraints.