driver-facebook icon indicating copy to clipboard operation
driver-facebook copied to clipboard

Facebook Graph api version 3.0 support ended

Open PetrGorchanuk opened this issue 3 years ago • 3 comments

Hello

Can't get user data

Also issue with bot requests /app/vendor/botman/driver-facebook/src/FacebookDriver.php:516 Error sending payload: (100) No matching user found

Due to the fact that support for version 3.0 facebook graph api, which is currently used in the driver is over

https://developers.facebook.com/docs/graph-api/changelog/version3.0/

Release: May 1, 2018 | Available until: July 28, 2020

PetrGorchanuk avatar Aug 10 '20 14:08 PetrGorchanuk

So does this just mean it needs to get updated to a later version? v4? could it continue to function if that was updated?

vesper8 avatar Sep 04 '20 09:09 vesper8

Experiencing this issue only receivesFiles().

By som reason in https://github.com/botman/botman/blob/2.0/src/BotMan.php#L241 it uses NullDriver instead of Facebook:

$user = $this->getDriver()->getUser($this->getMessage());

freescout-helpdesk avatar Mar 02 '21 18:03 freescout-helpdesk

Fixed by loading drivers:

                \BotMan\BotMan\Drivers\DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookDriver::class);
               // Also need to be loaded
                \BotMan\BotMan\Drivers\DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookAudioDriver::class);
                \BotMan\BotMan\Drivers\DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookFileDriver::class);
                \BotMan\BotMan\Drivers\DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookImageDriver::class);
                \BotMan\BotMan\Drivers\DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookLocationDriver::class);
                \BotMan\BotMan\Drivers\DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookLocationDriver::class);
                \BotMan\BotMan\Drivers\DriverManager::loadDriver(\BotMan\Drivers\Facebook\FacebookVideoDriver::class);

freescout-helpdesk avatar Mar 02 '21 18:03 freescout-helpdesk