chatbot php facebook
versão do chatbot
Essential for configuration (Essential for Setup):
- Php> = 5.4
- Composer. https://getcomposer.org/download/
- UNDERSTAND THE PHP BASIC
- Hosting used for the project https://goo.gl/rrhswu
What is it for? (What is it for?)
composer chatbotphp paulao-dev/chat-bot-php-facebook
Demo Online help help Access the Facebook Developers Developer Panel
Created application
Configuring Messenger
Configuration
Configuring webhooks
https://seudominio.com/webhooks .index.php file and assign a password to check on webhooks. Route:: get ( ' /webhook ' , function () {
$ token_access = " minhasenha123 " ;
});Configuring PHP Server
After the verification is successful.
Open the terminal in the downloaded folder the repository is from an composer install
/config/botConfig/config.php and enter your configuration define ( " BOT_KEY " , " SUA KEY " );
define ( " BOT_TOKEN " , " minhasenha123 " );
define ( " BOT_DOMINIO " , " https://meusite.com/ " );
define ( " BOT_ENDPOINT " , BOT_DOMINIO . " endpoint " );BOT_TOKEN /config/botConfig/config.php .Configure Messages
/neural/neuro-system.json Callbacks are configured at /src/bot/callbacks.php
Note:
- The messages are configured in JSON.