This page looks best with JavaScript enabled

Remove All Your Facebook Likes

 ·  ☕ 1 min read

Recently came across an interesting code snippet from github gists.

1
2
3
4
5
6
7
8
setInterval(() => {
  for (const Button of document.querySelectorAll(
    'div[aria-label="Action options"]'
  )) {
    Button.click();
    document.querySelector('div[role="menuitem"]').click();
  }
}, 1000);

Visit the below url and dont forget to replace with your FB username or userid.

https://www.facebook.com/{your_id_or_username}/allactivity/?category_key=LIKEDPOSTS&filter_hidden=ALL&filter_privacy=NONE

You can choose filter to choose year or month.

Once you are done with this, open console on your webpage (cmd+shift+J on mac or ctrl+shift+I on windows or linux) or just right click on the webpage choose Inspect Element then select Console and just paste the above snippet and hit Enter.

Based upon your activity history it may take some time or it may throw an API limit Error. Nevertheless, you can try again later may be after a day.

Now go and enjoy some privacy 😄 🎉

Share on