Currently logging in from the script doesn't work 99% of the time. You have to copy the browser cookies from the browser and put that in a json file. More details are here.
Also, I'll not be responsible if your account gets blocked or deleted. USE AT YOUR OWN RISK!
Logs Messenger messages, logs them on local storage and sends a copy via Telegram bot!
*Enter your email, password, telegram chat ID and bot ID in the config.py
file.
- Install Python 3 in your machine.
- Install
python3-pip
in your linux distro using apt or the package manager you have (not for Windows). - Run
pip3 install -r requirements.txt --user
. - Install git:
sudo apt install git
(for Ubuntu and Debian based. Command will differ for other distros. Not needed on Windows.) - Run
git clone --single-branch --branch v1 https://github.com/MS-Jahan/fbchat.git
. You can delete other files and folders (cloned from my fbchat fork) except thefbchat
folder. For Windows, you can just download the code (in zip file) for the code in branch v1. - Clone this repository using
git clone https://github.com/MS-Jahan/Messenger-Message-Logger
. On Windows, just download the zip file and extract it. - Now copy the previous
fbchat
folder to theMessenger-Message-Logger
folder where themain.py
file is. - Open cmd/terminal and change directory to repository folder:
cd Messenger-Message-Logger
. (for example) - Now run:
python3 main.py
Logs when:
- New text message received (normal message or replied message).
- Someone sends images, gifs, stickers or any kind of attachment.
- Someones reacts or remove reaction.
- Someones changes thread (conversation) name, color/theme, emoji.
- Someones changes nickname.
- New friend request is received.
- New video/audio call is started or someone joined call in group conversation. (UNTESTED)
- Someone adds or removes someone (as admin or general member) and toggles 'Require Admin Approval' in group conversation.
- Someone starts or stops typing in private chat.
- Any kind of poll or plan activity is happened. (UNTESTED)