PHP code example of paulao-dev / chat-bot-php-facebook
1. Go to this page and download the library: Download paulao-dev/chat-bot-php-facebook library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
paulao-dev / chat-bot-php-facebook example snippets
Route::get('/webhook', function() {
$token_access = "minhasenha123";
});
define("BOT_KEY", "SUA KEY");
define("BOT_TOKEN", "minhasenha123");
define("BOT_DOMINIO", "https://meusite.com/");
define("BOT_ENDPOINT", BOT_DOMINIO."endpoint");