在messenger中,如果只想讓使用者回覆制式的回答,可以用快速回覆的泡泡按鈕,JSON指令如下:
-------------------------------------------------------------------------------------------
{
"recipient":{
"id":"<收件人ID>"
},
"message":{
"text": "Here is a quick reply!",
"quick_replies":[
{
"content_type":"text",
"title":"tag1",
"payload":"tag1",
},
{
"content_type":"text",
"title":"tag2",
"payload":"tag2",
},
]
}
}
-------------------------------------------------------------------------------------------
https://graph.facebook.com/v2.6/me/messages?access_token=<你的TOKEN>
-------------------------------------------------------------------------------------------
沒有留言:
張貼留言