ker0x/messenger

Error with 'seq' parameter

SoleneLms opened this issue · 2 comments

Hello,

I am currently working on a project using your bundle
We have a problem with quick replies that no longer call their callback function since the beginning of this month of August.
While looking in our logs, we could see the following error:

[2019-08-19 15:29:11] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Type error: Argument 2 passed to Kerox\Messenger\Model\Callback\Message::__construct() must be of the type integer, null given, called in /var/www/v2/releases/448/vendor/kerox/messenger/src/Model/Callback/Message.php on line 157” at /var/www/v2/releases/448/vendor/kerox/messenger/src/Model/Callback/Message.php line 49 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Type error: Argument 2 passed to Kerox\Messenger\Model\Callback\Message::__construct() must be of the type integer, null given, called in /var/www/v2/releases/448/vendor/kerox/messenger/src/Model/Callback/Message.php on line 157 at /var/www/v2/releases/448/vendor/kerox/messenger/src/Model/Callback/Message.php:49)“} []

At the root of the problem would be an update of Messenger that would no longer use the ‘seq’ parameter:
« Effective as of today, the parameter seq will always be 0 for all Messenger webhook events. This deprecation was announced on November 8, 2016. After Jul 31, 2019 the seq parameter will no longer be included in webhook events. To de-duplicate messages use the mid parameter. »
--> https://developers.facebook.com/docs/messenger-platform/changelog

This is the reason why the bundle should be updated so that this parameter will no longer be present or will be modified and that the quick replies return to normal operation.

ker0x commented

Hello @SoleneLms !

Thanks for reporting this issue. I just released version 3.2. Can you update your project and let me known if it has fix your problem ?