You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> A very simple PHP [Messenger Bot API](https://developers.facebook.com/docs/messenger-platform) for sending messages.
3
+
> Based on [Telegram Bot API](https://core.telegram.org/bots) by [Eleirbag89](https://github.com/Eleirbag89).
4
+
5
+
Requirements
6
+
---------
7
+
8
+
* PHP5
9
+
* Curl for PHP5 must be enabled.
10
+
* Create a Facebook App at [https://developers.facebook.com/apps/](https://developers.facebook.com/apps/)
11
+
12
+
For the WebHook:
13
+
* An SSL certificate (Telegram API requires this). You can use [Cloudflare's Free Flexible SSL](https://www.cloudflare.com/ssl) which crypts the web traffic from end user to their proxies if you're using CloudFlare DNS.
14
+
15
+
Installation
16
+
---------
17
+
18
+
* Copy Messenger.php into your server and include it in your new bot script
19
+
```php
20
+
include("Messenger.php");
21
+
$facebook = new Messenger($bot_id);
22
+
```
23
+
24
+
Configuration (WebHook)
25
+
---------
26
+
27
+
Navigate to [https://developers.facebook.com/apps/YOUR_APP_ID/messenger/](https://developers.facebook.com/apps/YOUR_APP_ID/messenger/) and add the webhook.
0 commit comments