https://github.com/kapi2289/fb-anti-unsend
Sends you every unsent message on Facebook Messenger
https://github.com/kapi2289/fb-anti-unsend
Last synced: 11 months ago
JSON representation
Sends you every unsent message on Facebook Messenger
- Host: GitHub
- URL: https://github.com/kapi2289/fb-anti-unsend
- Owner: kapi2289
- License: mit
- Created: 2019-01-28T18:05:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T21:35:09.000Z (almost 3 years ago)
- Last Synced: 2025-06-13T23:34:29.979Z (12 months ago)
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 22
- Watchers: 3
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Facebook Messenger anti-unsend
## Description
Are you getting angry when someone unsends the message and you can't see it? This project is for you! When someone will unsend the message, you'll get it immediately in your conversation with yourself.
## Installation
Clone the repo
```console
$ git clone https://github.com/kapi2289/fb-anti-unsend.git
$ cd fb-anti-unsend
```
Create the `.env` file and edit it with your favourite text editor
```console
$ cp .env.example .env
$ nano .env
```
Install dependencies
```console
$ pip install --user pipenv
$ pipenv install
```
And now you can run it!
```console
$ pipenv run python start.py
```
## Tips
This project is using `fbchat` library. You can get your session, turn it to JSON and save it to the `session.json` file
```python
import fbchat
import json
client = fbchat.Client("you@example.com", "password")
session = client.getSession()
with open("session.json", 'w') as f:
f.write(json.dumps(session))
```
And then you need to set the `FB_USE_SESSION` option to `true` in your `.env` file