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

$bot -> send does not work #177

Open
AyoubMarouan opened this issue Nov 2, 2019 · 1 comment
Open

$bot -> send does not work #177

AyoubMarouan opened this issue Nov 2, 2019 · 1 comment

Comments

@AyoubMarouan
Copy link

AyoubMarouan commented Nov 2, 2019

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
@AyoubMarouan
Copy link
Author

AyoubMarouan commented Nov 3, 2019

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

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

No branches or pull requests

1 participant