{
"info": {
"author": "Le Goff Vincent",
"author_email": "vincent.legoff.srs@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Communications :: Chat",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "======\nFBBack\n======\n\n\nFacebook Chat (`Messenger `__) for Python. This project was inspired by `facebook-chat-api `__.\n**FBBack** (pronunce F-B-Back) was forked from Taehoon Kim (/ `@carpedm20 `__)'s `fbchat `__.\n\n**No XMPP or API key is needed**. Just use your ID and PASSWORD.\n\n\nInstallation\n============\n\nSimple:\n\n.. code-block:: console\n\n $ pip install FBBack\n\n\nExample\n=======\n\n.. code-block:: python\n\n import FBBack\n\n client = FBBack.Client(\"YOUR_ID\", \"YOUR_PASSWORD\")\n\n\nSending a Message\n=================\n\n.. code-block:: python\n\n friends = client.getUsers(\"FRIEND'S NAME\") # return a list of names\n friend = friends[0]\n sent = client.send(friend.uid, \"Your Message\")\n if sent:\n print(\"Message sent successfully!\")\n # IMAGES\n client.sendLocalImage(friend.uid,message='',image='') # send local image\n imgurl = \"http://i.imgur.com/LDQ2ITV.jpg\"\n client.sendRemoteImage(friend.uid,message='', image=imgurl) # send image from image url\n\n\nGetting user info from user id\n==============================\n\n.. code-block:: python\n\n friend1 = client.getUsers('')[0]\n friend2 = client.getUsers('')[0]\n friend1_info = client.getUserInfo(friend1.uid) # returns dict with details\n both_info = client.getUserInfo(friend1.uid,friend2.uid) # query both together, returns list of dicts\n friend1_name = friend1_info['name']\n\n\nGetting last messages sent\n==========================\n\n.. code-block:: python\n\n last_messages = client.getThreadInfo(friend.uid,0)\n last_messages.reverse() # messages come in reversed order\n\n for message in last_messages:\n print(message.body)\n\n\nExample Echobot\n===============\n\n.. code-block:: python\n\n import FBBack\n\n # Subclass FBBack.Client and override required methods\n\n class EchoBot(FBBack.Client):\n\n def __init__(self, email, password, debug=True, user_agent=None):\n FBBack.Client.__init__(self, email, password, debug, user_agent)\n\n def on_message(self, mid, author_id, author_name, message, metadata):\n self.markAsDelivered(author_id, mid) #mark delivered\n self.markAsRead(author_id) #mark read\n\n print(\"%s said: %s\"%(author_id, message))\n\n #if you are not the author, echo\n if str(author_id) != str(self.uid):\n self.send(author_id,message)\n\n bot = EchoBot(\"\", \"\")\n bot.listen()\n\n\n\nAuthors\n=======\n\nOriginal author: Taehoon Kim / `@carpedm20 `__\nFrked by: Le Goff Vincent / `@vlegoff `__",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/vlegoff/FBBack/",
"keywords": "facebook chat fbchat FBBack",
"license": "BSD License",
"maintainer": null,
"maintainer_email": null,
"name": "FBBack",
"package_url": "https://pypi.org/project/FBBack/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/FBBack/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/vlegoff/FBBack/"
},
"release_url": "https://pypi.org/project/FBBack/0.1/",
"requires_dist": null,
"requires_python": null,
"summary": "Facebook Chat (Messenger) for Python",
"version": "0.1"
},
"last_serial": 2549894,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "c09e4e812112b3ed231949259c065807",
"sha256": "82fccdd0cfd5ac2d176775706f97fb7de7cc6bd5c4c3f29118cc7b5951d0407c"
},
"downloads": -1,
"filename": "FBBack-0.1.tar.gz",
"has_sig": false,
"md5_digest": "c09e4e812112b3ed231949259c065807",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10759,
"upload_time": "2017-01-02T14:49:34",
"url": "https://files.pythonhosted.org/packages/f5/a1/013822c4c4d9f41667fd47997ee3a4de945f29f81d333699d82a69c59822/FBBack-0.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c09e4e812112b3ed231949259c065807",
"sha256": "82fccdd0cfd5ac2d176775706f97fb7de7cc6bd5c4c3f29118cc7b5951d0407c"
},
"downloads": -1,
"filename": "FBBack-0.1.tar.gz",
"has_sig": false,
"md5_digest": "c09e4e812112b3ed231949259c065807",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10759,
"upload_time": "2017-01-02T14:49:34",
"url": "https://files.pythonhosted.org/packages/f5/a1/013822c4c4d9f41667fd47997ee3a4de945f29f81d333699d82a69c59822/FBBack-0.1.tar.gz"
}
]
}