Skip to content

YellowOfTheEgg/fbotics

 
 

Repository files navigation

FBotics: Python Client for Facebook Send API

Build Status license codecov

Read the documentation at Fbotics.io.

Overview


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.

Getting started


Send a Text Message

from fbotics import Client
client = Client(page_access_token="EAAQQHQvZAn7wBAHju9UsxuqWWcUreBozSf2zePcRZBZAjNoaQdxK4o93U9UwGLPYIgy4ZABwkjH5ZBOm4L3aX1x0x4jLtXt8ZAxe3j9qYLpKWeYA2QfMTFt4lVBNB8QjlY0IlgX92yl6SMxH4uKO1QMCJHHYKZBJy9BqZAEJxApMkAZDZD")
client.send_text_message(recipient_id="1198828066838820", text="hello world!")

Installation


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 .

Development & Testing


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

About

Python Client for Facebook Send API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.3%
  • Makefile 2.4%
  • Dockerfile 0.3%