README update

This commit is contained in:
Taehoon Kim
2015-04-19 17:21:18 +09:00
parent fc7b7f3e43
commit 6dc17528ef
3 changed files with 56 additions and 30 deletions

View File

@@ -14,18 +14,52 @@ fbchat
.. image:: https://pypip.in/license/fbchat/badge.svg?style=flat
:target: https://pypi.python.org/pypi/fbchat
Facebook Chat (`Messenger <https://www.messenger.com/>`__) for Python. This project was inspired by `facebook-chat-api <https://github.com/Schmavery/facebook-chat-api>`__.
Facebook Chat (`Messenger <https://www.messenger.com/>`__) for Python. No XMPP or API key is needed. Just use your ID and PASSWORD.
This project was inspired by `facebook-chat-api <https://github.com/Schmavery/facebook-chat-api>`__.
Documentation
=============
Installation
============
Via pip:
To install fbchat, simply:
.. code-block:: console
$ pip install fbchat
Or, you can use:
.. code-block:: console
$ pip install fbchat
Or, you can also install manually:
.. code-block:: console
$ git clone git://github.com/carpedm20/fbchat.git
$ cd fbchat
$ python setup.py install
Echo bot example
================
.. code-block:: console
import fbchat
client = fbchat.Client("YOUR_ID", "YOUR_PASSWORD")
for op in client.listen():
client.sendMessage(op.message, op.sender)
Authors
=======