DEV Community

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

Posted on

2 1

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

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Best practices for optimal infrastructure performance with Magento

Running a Magento store? Struggling with performance bottlenecks? Join us and get actionable insights and real-world strategies to keep your store fast and reliable.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❀️