Friendship.am
#Javascript #Rune.js
This is a poster that records your digital relationship with other people, and also a data visualization for 10,000 Facebook messages between me and my boyfriend over a year.
I was inspired by a project called Dear Data(by Giorgia Lupi and Stefanie Posavec). I became very interested in personal data and how can designers make data more meaningful in people's day-to-day lives and interactions? How can we personalize this data to provide simple insights that more intimately connect with what an individual really cares about?
How to get all your Facebook messages?
Because Facebook doesn't provide users a full history of their messages, I wrote some scripts to grab messages from its websites and saved them as JSON file.
- I went to https://m.facebook.com/message/?more, and I opened one conversation with one of my friends. And you can see a "See Older Messages..." button on the top of the webpage. In order to view all the messages in this html, I input some script in the console. It hits the "See Older Messages..." button every 0.5 second.
2. Once we got all the messages with one person, we can run a javascript file to grab the name, message content, and time from the html page. The file lives on my gitub. You need to replace the html with your own facebook messages html, and include this two files in the html page.
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="main.js"></script>"
Once you open the html file, you can see there is a "loading..." on the top of the page, wait until it becomes to "Save as JSON", and click this link. It will download a JSON file for you.
3. So far we got a JSON file with 10000 messages in it. The data format is like this:
{
"author": "Yining Shi",
"text": "Hi! xxxxxxxxx",
"timestamp": 1416507160
}