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


Download files

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

Source Distribution

messenger-api-0.5.1.tar.gz (16.5 kB view hashes)

Uploaded Source

Built Distribution

messenger_api-0.5.1-py2.py3-none-any.whl (23.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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