Skip to content

A simple Chatbot for Facebook's personal profile that can chat with any of your friends in python using fbchat & dialogflow/Api.ai

License

Notifications You must be signed in to change notification settings

the-javapocalypse/Chatbot-For-Facebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot For Facebook Personal Profile in Python

A simple Chatbot for Facebook's personal profile that can chat with any of your friends and reply to them. Complete text and video based detailed tutorial link

Getting Started

You will need to register a free account on dialogflow. After that you need to create an agent and train it (how to create and train an agent using dialogflow). After that copy Client Access Token somewhere because we will be needing that later.

Installation

Download or Clone the repo, Navigate to the directory containing the files and run

python setup.py install

or if you have different versions of python installed then

python3 setup.py install 

to install the dependencies.

Note: If you're facing problems in installation of fbchat in Ubuntu then run the following command.

sudo apt-get --yes --force-yes install libxml2-dev libxslt1-dev libxml2 python-dev python3-dev zlib1g-dev

Usage

After running setup.py, open bot.py and plug in your Client Accecss Token, email and password and run the bot. Now you can test the bot by logging into some other facebook account and starting a chat with the account you used to run the bot.

Built With

  • fbchat
  • apiai

Contributing

  1. Fork it
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

Authors

  • Muhammad Ali Zia

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A simple Chatbot for Facebook's personal profile that can chat with any of your friends in python using fbchat & dialogflow/Api.ai

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages