A Facebook Messenger bot that allows you to chat with strangers, written in PHP.
- Create a Facebook fanpage.
- Create a Facebook App and add Messenger and Webhook product.
- Generate Page Access Token.
- Setup and verify webhook.
- Select a page to subscribe your webhook to the page events.
- Fill in the config.php with the information you have.
- All done.
Remember: The webhook must use HTTPS. You can use Let's Encrypt for free. This project needs a MySQL database to work.
Send message bot to page when you want to start chatting or end the conversation.
- Vir (mrvir)
For more information on how the script was created and how it works, contact me.
Special thanks to Wolf VHB for helping me debug this project.
MIT
If you do find this script useful, a link back to this repository would be appreciated. Thanks!