A lightweight Python SDK for sending messages via Facebook Messenger
Project description
Facebook Messenger Python SDK
A lightweight Python library to send messages via the Facebook Graph API.
Installation
pip install -r requirements.txt
Usage
from facebook_messenger import MessengerClient
ACCESS_TOKEN = "YOUR_FACEBOOK_PAGE_ACCESS_TOKEN"
client = MessengerClient(access_token=ACCESS_TOKEN)
response = client.send_text_message(recipient_id="USER_ID", message_text="Hello from Python!")
print(response)
Error Handling
The library raises MessengerAPIError for API-related errors.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fb_gapi-0.0.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fb_gapi-0.0.0.tar.gz.
File metadata
- Download URL: fb_gapi-0.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4785df6219e34c2edfbebd064c10ae7ec565b5ee182b56f5f116c919c13683dc
|
|
| MD5 |
aa44480f75c30ce141e25eb28d44e10b
|
|
| BLAKE2b-256 |
ee0bd946aa74b1241909a53c811b03885c82738e759b238926b73d2c51069d99
|
File details
Details for the file fb_gapi-0.0.0-py3-none-any.whl.
File metadata
- Download URL: fb_gapi-0.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b12a3f12ac7ea3bb4e5f002f88414179e251c7ae39c3f6ee6f33f20de2c099
|
|
| MD5 |
07e22dbbd19f635294fcb3718dcde202
|
|
| BLAKE2b-256 |
379821671162798829a50ada3ee0caacd42f6ee17abff98ecd7e3687a8a88867
|