chatbot php facebook
versão do chatbot
Penting untuk konfigurasi (penting untuk pengaturan):
- PHP> = 5.4
- Komposer. https://getComposer.org/download/
- Pahami PHP BASIC
- Hosting digunakan untuk proyek https://goo.gl/rrhswu
Untuk apa itu? (Untuk apa?)
composer chatbotphp paulao-dev/chat-bot-php-facebook
Demo Online help help Akses Panel Pengembang Facebook Developers
Aplikasi yang dibuat
Mengkonfigurasi Messenger
Konfigurasi
Mengkonfigurasi Webhooks
https://seudominio.com/webhooks .index.php dan tetapkan kata sandi untuk memeriksa webhooks. Route:: get ( ' /webhook ' , function () {
$ token_access = " minhasenha123 " ;
});Mengkonfigurasi server PHP
Setelah verifikasi berhasil.
Buka terminal di folder yang diunduh Repositori berasal dari composer install
/config/botConfig/config.php dan masukkan konfigurasi Anda 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 .Konfigurasikan pesan
/neural/neuro-system.json Callbacks dikonfigurasi di /src/bot/callbacks.php
Catatan:
- Pesan dikonfigurasi dalam JSON.