fbmessenger
A python library to communicate with the Facebook Messenger API's
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release April 2019, last commit December 2022) and has not been updated to reflect changes in the Facebook Messenger API or modern Python versions. Unless you are maintaining legacy code that already depends on it, you should use an actively maintained alternative or build directly against the current Facebook Graph API.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Facebook app with Messenger product enabled, a page access token, and a publicly accessible webhook URL to receive callbacks from Facebook.
- Installation is straightforward with low friction—a single wheel dependency on requests.
- However, the package is abandoned; the last commit was in 2022 and no releases have occurred since April 2019, raising concerns about compatibility with current Facebook API changes and Python versions.
License · maintenance · safety
Apache (permissive) — Licensed under Apache (permissive), so you may use, modify, and distribute the package freely in commercial and private projects without restriction.
last release 2019-04-24 (2669 days) · last repo commit 2022-12-08 · 113 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 280,412 downloads/mo, #8,111 on PyPI
Alternatives
Verify before relying
pip install fbmessenger
from fbmessenger import BaseMessenger, MessengerClient
class Messenger(BaseMessenger):
def __init__(self, page_access_token):
self.client = MessengerClient(page_access_token)
def message(self, message):
self.send({'text': 'Received'}, 'RESPONSE')
def delivery(self, message): pass
def read(self, message): pass
def optin(self, message): pass
def postback(self, message): pass
def account_linking(self, message): pass
messenger = Messenger('your_page_token')
messenger.handle(webhook_payload)- Whether the package remains compatible with current Facebook Messenger API endpoints and authentication requirements.
- Whether Python 3.3–3.5 support claims (in classifiers) reflect actual tested compatibility or are outdated.
- Whether the package handles recent Facebook API breaking changes introduced after April 2019.
What it is and what it does
fbmessenger is a wrapper around the Facebook Messenger Send API that lets you build chatbots and message handlers in Python. You extend a BaseMessenger class to handle incoming webhook events (messages, deliveries, reads, postbacks, etc.) and use a MessengerClient to send text, buttons, templates, and media attachments back to users. It includes support for message tags, notification types, and timeouts on network calls.
The package is designed to integrate with Flask or similar web frameworks to receive and process webhook callbacks from Facebook. It abstracts away the HTTP plumbing and JSON serialization, letting you focus on the logic of responding to user messages. However, the project has not been maintained since 2019, so it may not reflect current Facebook API requirements or Python ecosystem best practices.
Use it for
- Build a simple chatbot that responds to user messages on Facebook Messenger with text or templated replies.
- Integrate Messenger into a Flask web app to handle incoming webhook events and send structured messages back.
- Send rich message templates (generic, button, receipt) with images, links, and interactive buttons to Messenger users.
- Upload and manage media attachments (images, audio, video, files) for use in Messenger conversations.
- Implement message tags to send notifications outside the standard 24-hour message window for specific use cases.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release April 2019, last commit December 2022) and has not been updated to reflect changes in the Facebook Messenger API or modern Python versions. Unless you are maintaining legacy code that already depends on it, you should use an actively maintained alternative or build directly against the current Facebook Graph API.
Install
fbmessenger on PyPI
Before you install
Installation is straightforward with low friction—a single wheel dependency on requests. However, the package is abandoned; the last commit was in 2022 and no releases have occurred since April 2019, raising concerns about compatibility with current Facebook API changes and Python versions.
Requires a Facebook app with Messenger product enabled, a page access token, and a publicly accessible webhook URL to receive callbacks from Facebook.
License in practice
Licensed under Apache (permissive), so you may use, modify, and distribute the package freely in commercial and private projects without restriction.
Quickstart
pip install fbmessenger
from fbmessenger import BaseMessenger, MessengerClient
class Messenger(BaseMessenger):
def __init__(self, page_access_token):
self.client = MessengerClient(page_access_token)
def message(self, message):
self.send({'text': 'Received'}, 'RESPONSE')
def delivery(self, message): pass
def read(self, message): pass
def optin(self, message): pass
def postback(self, message): pass
def account_linking(self, message): pass
messenger = Messenger('your_page_token')
messenger.handle(webhook_payload)
Verify before relying
- Whether the package remains compatible with current Facebook Messenger API endpoints and authentication requirements.
- Whether Python 3.3–3.5 support claims (in classifiers) reflect actual tested compatibility or are outdated.
- Whether the package handles recent Facebook API breaking changes introduced after April 2019.
Package facts
| License | Apache permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Abandoned 2,669 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 280,412 / month, #8,111 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Topic :: Software Development :: Build Tools |
Evidence: fbmessenger-6.0.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “facebook messenger api python”
- fbmessengerA Python library for sending and receiving messages through the…
- rasaRasa is an open-source machine learning framework for building text…
- facebook-sdkA Python client library for the Facebook Graph API that handles…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also facebook-sdk · slackweb · onesignal-python-api · azure-communication-email · discord-webhook · telebot · pushbullet.py · python-oxmsg · vonage-messages