Skip to main content

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

Project description

Installation

Just use pip, as you would with all packages

$ 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

>>> 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.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for messenger-api, version 0.5.1
Filename, size File type Python version Upload date Hashes
Filename, size messenger_api-0.5.1-py2.py3-none-any.whl (23.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size messenger-api-0.5.1.tar.gz (16.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page