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.1.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.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for fb_gapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 23001258e4ed7e3027ac2c154403b9087e2418cf0acab10eae93603a0662bf83
MD5 3b99a074b6a3cc4d96b8edaace7b0859
BLAKE2b-256 1dfc4787f51498111022afd63691ed2542c61a24d4e79b19a2d2c2cdd0df4117

See more details on using hashes here.

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

Hashes for fb_gapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1dced29de9440215ab27d9dc9597f00eb63988ab315f1384639fc2900356cbf7
MD5 98a96263eb1baea93dc7cd5c9ea850b5
BLAKE2b-256 47934d389be5cc2d337b0fdb4a759e9acc3cbb927fa3de2fc561d3fd31e818b3

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