This is a guideline about creating your own chatbot on facebook
Author : Redhung aka r3dhun9
Contact :Philip Chen (Facebook)
composer global require laravel/installer
composer global require "botman/installer"
composer create-project --prefer-dist botman/studio <directory>
php artisan botman:install-driver facebook
First, create your own page on facebook.
And then go to this website to login.
Press the button to create your app and input your name.
Press "基本資料" and fill in the blanks.
Notice: You can use https://www.privacypolicies.com/ to create a privacy page.
Notice2: You can use https://ngrok.com/ to create a domain with php artisan serve.
Press "+" button next to the "產品", and press "設定".
Add your own page.
Let's go back to our botman directory.
Edit .env and add these parameters below :
Press "產生權杖" to access your FACEBOOK_TOKEN :
Press "基本資料" and "顯示" to access your FACEBOOK_APP_SECRET :
Last, enter your specific FACEBOOK_VERIFICATION to .env and go back to edit the webhook.
Notice: We must add /botman after the url to call our chatbot.
Okay, let's turn up the button and have fun !