如何工作 Facebook Messenger bot 通用模板可共享
How to work Facebook Messenger bot generic template sharable
sharable
功能中的实际信使会怎样?
我无法理解原生分享按钮(PC 和移动设备)的变化。
我想知道 sharable
设置有什么变化。
设置值没有变化(见图)。
示例请求:
{
"recipient":{
"id":"<PSID>"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"generic",
***"sharable":true or false,***
"elements":[
{
"title":"Welcome to Peter\'s Hats",
"image_url":"https://petersfancybrownhats.com/company_image.png",
"subtitle":"We\'ve got the right hat for everyone.",
"buttons":[
{
"type":"web_url",
"url":"https://petersfancybrownhats.com",
"title":"View Website"
},{
"type":"postback",
"title":"Start Chatting",
"payload":"DEVELOPER_DEFINED_PAYLOAD"
}
]
}
]
}
}
}
}
自己解决了。
如果元素按钮的按钮类型是postback或share,则sharable不起作用。
sharable
功能中的实际信使会怎样?
我无法理解原生分享按钮(PC 和移动设备)的变化。
我想知道 sharable
设置有什么变化。
设置值没有变化(见图)。
示例请求:
{
"recipient":{
"id":"<PSID>"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"generic",
***"sharable":true or false,***
"elements":[
{
"title":"Welcome to Peter\'s Hats",
"image_url":"https://petersfancybrownhats.com/company_image.png",
"subtitle":"We\'ve got the right hat for everyone.",
"buttons":[
{
"type":"web_url",
"url":"https://petersfancybrownhats.com",
"title":"View Website"
},{
"type":"postback",
"title":"Start Chatting",
"payload":"DEVELOPER_DEFINED_PAYLOAD"
}
]
}
]
}
}
}
}
自己解决了。
如果元素按钮的按钮类型是postback或share,则sharable不起作用。