botman / driver-facebook

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

Bot facebook not respond #45

Closed rafaelarapiracati closed 5 years ago

rafaelarapiracati commented 6 years ago

PHP 7.1 Botman installed with BotMan Studio "botman/driver-facebook": "^1.3",

Hello, I'm having problems with my bot. (Facebook). I was not able to validate though I read https://github.com/botman/botman/issues/593 and changed the verifyRequest method to echo $ request->get('hub_challenge'); and I was able to validate.

However the return log \Log::info('verification:'.$request->get('token'). 'hub_mode:'.$request->get('hub_mode').' - hub_verify_token: ' . $request->get('hub_verify_token') );

log laravel [2017-11-15 21:17:26] local.INFO: verification:hub_mode:subscribe - hub_verify_token: [2017-11-15 21:18:53] local.INFO: verification:hub_mode:subscribe - hub_verify_token:

it is always empty. I do not know if this can have any relation, but my bot does not respond

Test with web bot tinker is working

routes/botman.php ############################ <?php use App\Http\Controllers\BotManController;

$botman = resolve('botman');

$botman->hears('Hi', function ($bot) { $bot->reply('Hello!'); });

$botman->hears('Start conversation', BotManController::class.'@startConversation');

############################## Thanks for the help.

christophrumpel commented 5 years ago

Hi @rafaelarapiracati, do you still got this error?

christophrumpel commented 5 years ago

I am closing this issue due to inactivity.