Facebook API发送element_share载荷?

问题描述:

我在使用Wit.ai构建Node.js ChatBot,我只想知道是否有可能在用户打开Messenger上的共享部分时跟踪用户操作。
Facebook API发送element_share载荷?

"recipient":{ 
    "id":"USER_ID" 
    }, 
    "message":{ 
    "attachment":{ 
     "type":"template", 
     "payload":{ 
     "template_type":"generic", 
     "elements":[ 
      { 
      "title":"Breaking News: Record Thunderstorms", 
      "subtitle":"The local area is due for record thunderstorms over the weekend.", 
      "image_url":"https://thechangreport.com/img/lightning.png", 
      "buttons":[ 
       { 
       "type":"element_share" 
       }    
      ] 
      } 
     ] 
     } 
    } 
    } 


没有回传,没有有效载荷发送给聊天机器人,所以我怎么能做到这一点吗?

Messenger api目前没有办法检测用户共享一个项目。

您可以通过参数加载共享URL来识别用户,并在加载页面时在服务器上侦听它们。这可能有助于将用户分享给用户。

还有Messenger Extensions sdk,它可以在您的网站上用户get the page scoped id