Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook Graph api version 3.0 support ended #107

Open
PetrGorchanuk opened this issue Aug 10, 2020 · 3 comments
Open

Facebook Graph api version 3.0 support ended #107

PetrGorchanuk opened this issue Aug 10, 2020 · 3 comments

Comments

@PetrGorchanuk
Copy link

PetrGorchanuk commented Aug 10, 2020

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

@vesper8
Copy link

vesper8 commented Sep 4, 2020

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

@freescout-helpdesk
Copy link

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
Copy link

freescout-helpdesk commented Mar 2, 2021

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants