Read the blog post: https://ilemhadri.wordpress.com/2017/07/01/visualizing-your-friends-activity-on-messenger/
Pre-requisites
- Git (how to install)
- Python with the packages pandas, numpy, selenium, yaml, matplotlib
- A Selenium webbrowser instance. I recommend ChromeDriver or using the new headless feature in Chrome.
Clone repository
git clone https://github.com/sqren/fb-sleep-stats.git
Configuration
Open the source code folder:
cd fb-messenger-activity
Setup the database and save your Facebook login credentials. Note: You may need to install a compatible selenium webbrowser in case "chromedriver.exe" is not compatible with your OS.
python init.py
Launch the scraper (and keep it active for as long as needed)
python scrape.py
Generate the PDF report
usage: main.py [-h] [--userid USERID] [--name NAME [NAME ...]] [--all]
Generates the user activity report
optional arguments:
-h, --help show this help message and exit
--userid USERID the user's facebook id
--name NAME [NAME ...]
the user's full name
--all generate reports for all users on file
I do not encourage personal use of this tool. I have decided to publish it for educational purposes only. Most of my friends and family are simply not aware of how much of their private information is being shared online without their knowledge. As such, the goal of this utility is certainly not to spy on your friends but to raise awareness about privacy concerns on Facebook.
This tool has not been updated since June 2017. The author does NOT intend to keep it up to date in case of updates to the Messenger internals.