如何工作Facebook Messenger bot通用模板可共享

时间:2017-10-11 01:52:03

标签: facebook facebook-graph-api facebook-messenger

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"
              }              
            ]      
          }
        ]
      }
    }
  }
}

1 个答案:

答案 0 :(得分:1)

自我解决。

如果元素按钮的按钮类型是回发或共享,则共享不起作用。