This Project is currently Working In Progress(WIP)
This is basic Facebook messenger chat bot with Laravel yeah. You saved questions and answer to the database. When user ask question from Messenger. It answer back with the answer you saved in the database. That's for now yeah. Will add many more new features soon ;)
database/seeds/QuestionsAndAnswerSeeder.php
Already added some basic, you can check it out there and run php artisan migrate && php artisan db:seed
QuestionsAndAnswerSeeder
's Q&AFor this step, I am really lazy to write everything. So, I just copy from jw84 repo. Thanks jw84
In this step https://guarded-dusk-21746.herokuapp.com/webhook/ will be https://yourdomain.com/webhook/
Go back to Terminal and type in this command to trigger the Facebbook app to send messages. Remember to use the token you requested earlier.
$ curl -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=PAGE_ACCESS_TOKEN"
Thanks jw84 for Messenger Bot Tutorials and pimax for FB Messenger Bot PHP API