You need Python 3.5 or later to run this script. You can have multiple Python versions (2.x and 3.x) installed on the same system without problems.
In Ubuntu, Mint and Debian you can install Python 3 like this:
$ sudo apt-get install python3 python3-pip
For other Linux flavors, macOS and Windows, packages are available at
- Download your Facebook Messaging Data by heading to settings
- Click Download your information.
- Select messages and the format as JSON.
- Click create file.
- You will receive a notification as well as an email when your data is ready. It normally takes 15-20 minutes to combine the data.
- Once you have downloaded the data file, extract the folder and Navigate to Messages > Inbox.
- Here you can see the individual folders for each of your chat.
- Open any of chat folder and copy the message_1.json file.
- message_1.json is the data file we will be using to plot the charts. Place it in the fbchatviz folder.
$ git clone https://github.com/thelittlewonder/fbchatviz.git
$ pip install -r requirements.txt
$ python plot.py message_1.json