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.1.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.1.0.tar.gz.
File metadata
- Download URL: fb_gapi-0.1.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 |
23001258e4ed7e3027ac2c154403b9087e2418cf0acab10eae93603a0662bf83
|
|
| MD5 |
3b99a074b6a3cc4d96b8edaace7b0859
|
|
| BLAKE2b-256 |
1dfc4787f51498111022afd63691ed2542c61a24d4e79b19a2d2c2cdd0df4117
|
File details
Details for the file fb_gapi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fb_gapi-0.1.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 |
1dced29de9440215ab27d9dc9597f00eb63988ab315f1384639fc2900356cbf7
|
|
| MD5 |
98a96263eb1baea93dc7cd5c9ea850b5
|
|
| BLAKE2b-256 |
47934d389be5cc2d337b0fdb4a759e9acc3cbb927fa3de2fc561d3fd31e818b3
|