Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
fbchat
- Facebook Messenger for Python.. image:: https://badgen.net/pypi/v/fbchat-asyncio :target: https://pypi.python.org/pypi/fbchat-asyncio :alt: Project version
.. image:: https://badgen.net/badge/python/3.6,3.7,3.8?list=| :target: https://pypi.python.org/pypi/fbchat-asyncio :alt: Supported python versions: 3.6, 3.7 and 3.8
.. image:: https://badgen.net/pypi/license/fbchat :target: https://github.com/tulir/fbchat-asyncio/tree/master/LICENSE :alt: License: BSD 3-Clause
A powerful and efficient library to interact with
Facebook's Messenger <https://www.facebook.com/messages/>
, using just your email and password.
This is an asyncio fork of the fbchat <https://github.com/carpedm20/fbchat>
library.
This is not an official API, Facebook has that over here <https://developers.facebook.com/docs/messenger-platform>
__ for chat bots. This library differs by using a normal Facebook account instead.
fbchat
currently support:
async
/await
(COMING).Essentially, everything you need to make an amazing Facebook bot!
fbchat
works by imitating what the browser does, and thereby tricking Facebook into thinking it's accessing the website normally.
However, there's a catch! Using this library may not comply with Facebook's Terms Of Service!, so be responsible Facebook citizens! We are not responsible if your account gets banned!
Additionally, the APIs the library is calling is undocumented! In theory, this means that your code could break tomorrow, without the slightest warning! If this happens to you, please report it, so that we can fix it as soon as possible!
.. inclusion-marker-intro-end .. This message doesn't make sense in the docs at Read The Docs, so we exclude it
With that out of the way, you may go to Read The Docs <https://fbchat.readthedocs.io/>
__ to see the full documentation!
.. inclusion-marker-installation-start
.. code-block::
$ pip install fbchat-asyncio
If you don't have pip <https://pip.pypa.io/>
, this guide <http://docs.python-guide.org/en/latest/starting/installation/>
can guide you through the process.
You can also install directly from source, provided you have pip>=19.0
:
.. code-block::
$ pip install git+https://github.com/tulir/fbchat-asyncio.git#egg=fbchat
.. inclusion-marker-installation-end
.. code-block::
import getpass
import fbchat
session = fbchat.Session.login("<email/phone number>", getpass.getpass())
user = fbchat.User(session=session, id=session.user_id)
user.send_text("Test message!")
More examples are available here <https://github.com/carpedm20/fbchat/tree/master/examples>
__.
@tulir <https://github.com/tulir>
__This project was originally inspired by facebook-chat-api <https://github.com/Schmavery/facebook-chat-api>
__.
FAQs
Facebook Messenger library for Python/Asyncio.
We found that fbchat-asyncio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.