pimax/fb-messenger-php

$bot -> send does not work

Opened this issue · 1 comments

Hello,

I'm trying to use the example,
the $bot -> send method does not work, I did not get any error message, here is my code :

$bot = new FbBotApp($token); $bot->send(new Message( $recipent_id , 'This is a simple text message.'));

I tried to debug the code, the script receives the message, but it does not send the message.

  • $token is valide
  • php_curl is actived

Thank you in advance

  • fb-messenger-php version: 1.2.2 / master@commit
  • PHP version: 5.6.40

I Found the error,

"The problem is that cURL has not been configured to trust the server’s HTTPS certificate."

You must add at :

// FbBotApp.php
// line 549
// curl_setopt($process, CURLOPT_SSL_VERIFYPEER, false);