Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fb_gapi-0.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for fb_gapi-0.0.0.tar.gz
Algorithm Hash digest
SHA256 4785df6219e34c2edfbebd064c10ae7ec565b5ee182b56f5f116c919c13683dc
MD5 aa44480f75c30ce141e25eb28d44e10b
BLAKE2b-256 ee0bd946aa74b1241909a53c811b03885c82738e759b238926b73d2c51069d99

See more details on using hashes here.

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

Hashes for fb_gapi-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b12a3f12ac7ea3bb4e5f002f88414179e251c7ae39c3f6ee6f33f20de2c099
MD5 07e22dbbd19f635294fcb3718dcde202
BLAKE2b-256 379821671162798829a50ada3ee0caacd42f6ee17abff98ecd7e3687a8a88867

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page