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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file messenger-api-0.5.1.tar.gz.

File metadata

File hashes

Hashes for messenger-api-0.5.1.tar.gz
Algorithm Hash digest
SHA256 80a46fa6d451b75a7b85bd2d04f08dee5a53ee06e6edf4a108565be44f522442
MD5 f46a7353e5ad7e27e31a2f7b39791266
BLAKE2b-256 33a6662fb7496dd3e6288780cb7a86fd6d8dbfab6ccd750a6c9cfa14cbce08cc

See more details on using hashes here.

File details

Details for the file messenger_api-0.5.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for messenger_api-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce87c7c50a7320c42157b72887e4c12330f777c6ebe1a1f06a1c8c6fd1544039
MD5 d2696d2cb5059e79c98c1a0354375cff
BLAKE2b-256 59acf019d4f40fcf60507783129ba62bf96affa457ffecab5caf814be88c2508

See more details on using hashes here.

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