You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

messenger-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

messenger-api

Unofficial Facebook Messenger library for Python 2.6+ / Python 3.4+ / pypy


Maintainers
1

Readme

Messenger API: Unoffical Facebook Messenger API

Installation

Just use pip, as you would with all packages

.. code-block:: bash

$ pip install messenger-api

Documentation

There's no docs, I'm sorry. Some day I'll do it.

Examples

Simple example of sending message to thread

.. code-block:: python

>>> from messenger_api import Messenger
>>> msg = Messenger('login', 'password')
>>> thread = msg.get_thread(485734986798)
>>> thread
<messenger_api.Thread.GroupThread: "Random chat name" (485734986798)>
>>> thread.send_message("TEST MESSAGE!")
<messenger_api.Message.Message object at 0x000000262414AFD0>

Message sent! :)

Soon you will be able to find some examples in examples directory

Contribute

I will appriciate pull requests, but if you want to help you even can just let me know that it stopped working.. I'm not using this library at everyday use and I don't have time to check if Facebook made any changes that breaks compatibility.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc