Facebook chatbot in PHP.
This will authorise the webhook and send messages back to your BOT. Created as it was hard to find anycode that worked with PHP - most examples use ngrok or heroku - this code can be run from any host with SSL enabled
- Create a facebook application and set up webhooks and messenger - loads of tutorials online
- Direct your webhook to your SSL host www.example.com/index.php
- upload index.php to your host
- Send your bot a message and the bot will reply with You said: (your message)
- Create the main commit.
- Update the codebase to allow for easier readability.
- Add the extra code to allow for broadcast messages.
- put everything into a class to allow for the easier making of chatbots.
- add basic NLP to the code.