Skip to content

NcWebServices/Facebook-chatbot-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Facebook-chatbot-PHP

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

instructions

  1. Create a facebook application and set up webhooks and messenger - loads of tutorials online
  2. Direct your webhook to your SSL host www.example.com/index.php
  3. upload index.php to your host
  4. Send your bot a message and the bot will reply with You said: (your message)
Todo
  • 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.