{
"object":"page",
"entry":[
{
"id":"255502108230287",
"time":1502382558816,
"messaging":[
{
"sender":{
"id":"1573650332660059"
},
"recipient":{
"id":"255502108230287"
},
"timestamp":1502381982109,
"message":{
"mid":"mid.$cAACylCZ7gBtj_jcJnVdzPHBbHOTC",
"seq":302583,
"text":"hii",
"nlp":{
"entities":{
"location":[
{
"suggested":true,
"confidence":0.97574394420685,
"value":"hii",
"type":"value"
}
],
"greetings":[
{
"confidence":0.71404528798453,
"value":"true"
}
]
}
}
}
}
]
}
]
}
我在Heroku中托管Messenger的webhook。为了分析文本,当webhook收到用户的消息时,我需要从Facebook服务器查看原始的json。上面的json是一个例子。如果我在Heroku上看不到它,我也可以在我的本地服务器上托管webhook。有没有办法做到这一点?这是我的webhook代码:https://github.com/EdgeGIT/DasanAssistant/blob/master/app.py或https://github.com/EdgeGIT/dasangeupsik/blob/master/index.js 非常感谢你。