我正在构建一个Node.js ChatBot,在Messenger上使用Wit.ai,我只想知道当用户在Messenger上打开共享部分时,是否有可能跟踪用户的操作。
"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"
}
]
}
]
}
}
}没有回发,没有有效载荷发送到ChatBot,所以我如何才能做到这一点?
发布于 2017-06-26 00:21:42
目前在Messenger api中没有检测共享项的用户的方法.
您可以使用参数加载共享url,以标识用户,并在加载页面时在服务器上侦听它们。这可能有助于将共享归因于用户。
还有Messenger扩展sdk,它可以是站点上用户的获取页面作用域id。
https://stackoverflow.com/questions/44694754
复制相似问题