简体   繁体   English

Facebook Messenger Webhook没有收到更新

[英]Facebook messenger webhook not receiving updates

I can't get messages via messenger webhook . 我无法通过messenger webhook接收消息。 It was working fine earlier. 之前运行良好。

In webhook section, i just write the input Json to a text file . webhook部分,我只是将input Json写入text file

$jsondata = file_get_contents('php://input');
file_put_contents('test.txt',$jsondata);

The only change i made was upgrading server from PHP5 to PHP7. 我所做的唯一更改是将服务器从PHP5升级到PHP7。

When i test from Facebook, it says that sample update was successfully sent to my server. 当我从Facebook测试时,它说示例更新已成功发送到我的服务器。

And it works fine when i input Json via Curl . 当我通过Curl输入Json时,它工作正常。

https://i.imgur.com/Z4G3R7n.jpg https://i.imgur.com/Z4G3R7n.jpg

https://i.imgur.com/pQWWuGc.jpg https://i.imgur.com/pQWWuGc.jpg

修复了我更新SSL证书后忘记添加SSL捆绑文件的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM