Skip to content
morwon
Go back

So What I Liked on Facebook for the Past Ten Years

Edit page

Despite all the #deletefacebook movement, Facebook management are still relatively stable and I am still scrolling through my News Feed every day. For some reason, I just always managed to find interesting content from the all the interesting pages that I have liked over the years.

But there is obviously frustration as well, such as it is not easy to find and browse your own data. For example, how many pages you have liked over the past 10 years and which year you liked the most pages? There is NO WAY to find this out from your Facebook profile. I decided to do something about it.

Facebook Graph API

Enter Graph API Explorer from Facebook. In fact, we can access our own data via this API console. The permission here that we are looking for is user_likes, where it returns all the Pages the person (aka you) has liked. That’s exactly what we need!

There are a number of code samples that you can use from once you get what you wanted in the explorer. In my case, I am going to use Python and therefore I am just going to use the Curl snippet and do simple requests.

Now here comes the code. I have wrote a simple Python script so that it can save you from the hassle of writing it again. So after the a few dozen API calls, I managed to get ALL of the pages that I have liked that goes way back to 2009!

Now I can easily see all the pages that I have liked via a csv file…or is there a better way?

”Explore” the Google Spreadsheet

While csv is one of the most popular format for data like this. Tools like Google Spreadsheet is in fact already so powerful that it can plot graph for us! Using the gspread module, you can easily upload the csv onto a specific Google Spreadsheet by the spreadsheet ID.

All you need to do is enable the sheets API and get the credentials for OAuth, as well as creating a new sheet and share the sheet to the service account of the sheets API in the Google Cloud Console.

And here is what I found with a click of the “Explore” button:

The not so easy next step

What’s next? Obviously is to let everyone to be able to use this without all the hassle above…which turns out to be not so easy.

Since the Cambridge Analytica Scandal, Facebook has a more strict policy on allow developers to create app out of Facebook data. In fact, I have tried multiple time on applying for an App Review, but got rejected multiple times. I hope that one day, all the people can just see what they have liked with a click of a button.

Hope this post is helpful in helping you to find out more about the Facebook pages you ever liked. Now let me get back to scrolling my News Feed and find more pages to like.


Edit page
Share this post on:

Previous Post
My "Near Churned Experience" with Audible