我正在努力将Messenger Bot与收件箱管理器应用程序相关联 .
收件箱管理器应用程序需要从/ conversation API https://developers.facebook.com/docs/graph-api/reference/v2.11/conversation/messages获取旧邮件以显示旧邮件 . 但是,我找不到合适的数据来显示它 .
例:

  1. Button Template

对话中的数据:

{
 "message": "Đây là những chức năng chính của chúng tôi",  
 "shares": {
   "data": [
     {
       "id": "2020954901252437"
     }
   ]
 }
}
  1. Generic Template with 1 Element
    对话中的数据:
{
 "message": "",
 "shares": {
   "data": [
     {
       "link": "https://www.google.com/maps/dir/api=1&destination=266+%C4%90%E1%BB%99i+C%E1%BA%A5n%2C+H%C3%A0+N%E1%BB%99i",
       "id": "2020947591253168",
       "name": "266 Đội Cấn, Hà Nội - 0904304070"
     }
   ]
 }
}

Generic Template with 3 Elements
对话中的数据:

{
 "message": "",
 "shares": {
   "data": [
     {
       "id": "2014708728543721",
       "name": "Sản phẩm nổi bật 123, Sản phẩm mới, Khuyến mãi"
     }
   ]
 }
}

无论如何,我可以得到像这样的消息的完整正确的模板数据https://developers.facebook.com/docs/messenger-platform/send-messages/template/generic#example_request
我怀疑shares.data中的id是https://developers.facebook.com/docs/messenger-platform/send-messages/saving-assets/#asset_types中的attachment_id,但我无法找到在任何地方访问附件数据的方法 .
感谢任何帮助