Read the documentation at Fbotics.io.
FBotics is a Python client for Facebook Send API. The Send API is the main API used to send messages to users, including text, attachments, structured message templates, sender actions, and more. The goal of this project is to privide a clean and professional client, which can be used in production environments. For this, each new functionality added will be fully tested and documented. Currently this project is under development and offers a limited set of features of the Facebook Send API.
Send a Text Message
from fbotics import Client
client = Client(page_access_token="EAAQQHQvZAn7wBAHju9UsxuqWWcUreBozSf2zePcRZBZAjNoaQdxK4o93U9UwGLPYIgy4ZABwkjH5ZBOm4L3aX1x0x4jLtXt8ZAxe3j9qYLpKWeYA2QfMTFt4lVBNB8QjlY0IlgX92yl6SMxH4uKO1QMCJHHYKZBJy9BqZAEJxApMkAZDZD")
client.send_text_message(recipient_id="1198828066838820", text="hello world!")
You can install FBotics from GitHub source:
First, clone FBotics using git
:
git clone git@github.com:pasmod/fbotics.git
Then, cd
to the project folder and run the install command:
cd fbotics
pip install .
Before developing FBotics further, please install Docker. For building the Docker image and installing all dependencies of FBotics, run:
cd fbotics
make build
Then execute the following command to run all the components required to work on FBotics:
cd fbotics
make up
To execute the tests:
make test
To create coverage report:
make coverage