botman / driver-facebook

BotMan Facebook Messenger Driver
MIT License
71 stars 72 forks source link

Except thread_id #119

Closed aalmonte closed 2 years ago

aalmonte commented 2 years ago

Add new message attribute 'thread_id' to except logic to fix drivers replies

markpavia commented 2 years ago

@filippotoso is it working with Originating Messages? because for me (before the merge) I used this as a work around for replies but it is not working for messages originating from my page so I have to use the old FacebookDriver

filippotoso commented 2 years ago

Neither of the changes should impact Originating Messages.

If you use this version of the driver to originate a message, which error do you get from Facebook as response?

markpavia commented 2 years ago

Neither of the changes should impact Originating Messages.

If you use this version of the driver to originate a message, which error do you get from Facebook as response?

No errors. Just not sending. Like what happened to replies before.

nazar-goyda commented 2 years ago

for me, its the same error too.

filippotoso commented 2 years ago

The latest version of the Facebook driver works correctly:

    $config = array_merge(
        config('botman.config'),
        ['facebook' => config('botman.facebook', [])]
    );

    $botman = BotManFactory::create($config, new LaravelCache());

    $botman->say('Hello world!', 'recepient-id', FacebookDriver::class);

If you get the error_subcode 2018001, go into the developer dashboard and regenerate the token.