DEV Community

Cover image for Facebook Unoficial API + Chatterbot part 1: Setting Environment
Takunda Madechangu
Takunda Madechangu

Posted on

Facebook Unoficial API + Chatterbot part 1: Setting Environment

Hello everyone in this series i will talking about how to create a facebook bot + a chatterbot. I wont try to be preachy here. I will just go straight to the point.

FBChat

According to pypi fbchat is a Facebook Chat (Messenger) library for Python. No need for XMPP or API key to use. Just use your email and password and you are good to go. In other words FBChat is unofficial don't do something fishy with it or your account will be blocked.

Chatterbox

ChatterBot is a machine-learning based conversational dialog engine build in
Python which makes it possible to generate responses based on collections of
known conversations. The language independent design of ChatterBot allows it
to be trained to speak any language. Which means you can use Chinese, Shona, Hindu e.t.c

First things first

Create a python environment

virtualenv -p python3 facebookapp

Activate the enviroment

source facebookapp/bin/activate

Now Install libraries

pip install fbchat
pip install chatterbot

Libraries installed we are now good to move to the next part.

Bye Bye

Top comments (0)