VPS business hosting starting at $29.95/24/7 premium technical support

How to unlike all Facebook pages from your profile and Clean your newsfeed

Hello humans, I have tried to keep this tutorial simple and detailed. Please proceed with caution.

The following tutorial and the procedure will unlike pages you have liked from your profile, Please be clear about that the fact that the code provided here is clean and does not intend to do any harm to your Facebook account.

Note – This code uses jQuery library in its original form. So you do not need to be scared while using this “scary” looking code.

Let us start right away:

PART 1 – Get the Console Ready

  1.  Make sure all extensions are turned off in your browser as this procedure uses a lot of memory. Please make sure that you are logged in to your facebook account.
  2. Open page – https://www.facebook.com/search/me/pages-liked
  3. Press CTRL + SHIFT + J  OR Simply Right Click and Choose Inspect Element
    1. Starting Warning
      Starting Warning
  4. In the new sub-window that pops up, Navigate to tab Console. (You should see a warning from Facebook with a BIG STOP text)
  5. Type clear(); to clean it.
  6. Use the code from the file jQuery Code and paste it in the Console.
    1. Paste the Code part1
      Paste the Code part1

PART 2 – Get the URLs of Liked Pages

  1. Now it is the time to scroll the page so that you can actually see a number of pages that you have liked (Don’t scroll too much)
  2. Use code from the cleanslate part2 file and paste it. Press Enter to execute the code.
    1. Paste code from Part2
      Paste code from Part2

      text to be saved
  3. As soon as you press Enter, you will see a lot of links in Red Color (It is a Javascript Array). Right Click in the blank area and choose Save as
    1. "Save as" The text
      “Save as” The text
  4. Save it as any file name and Open it in any text Editor (Notepad / Notepad++ / Sublime etc)

PART 3 – Prepare the JS Array

  1. Remove the first line (If second line starts with a [) and type the following:
    • var vd=
  2. At the end of the file, Insert a semicolon ; and Copy all text
    1. semicolon at end

PART 4 – Hit the UNLIKE button with script

  1. Back to Chrome, Open a new tab (CTRL + T) and Browse to https://mbasic.facebook.com
  2. Open the Console in new tab and Paste the jQuery code here too ( Step 3, 4, 5 & 6 )
  3. Paste the text copied in Step 12
  4. Now paste the code from cleanslate part4 – Code
    1. Paste the final code part4
      Paste the final code part4
  5. As soon as you hit Enter, a lot of small windows shall pop-up. If they don’t, Please allow the pop-ups by changing the settings first.

    How to allow pop ups
  6. If you see these pop-ups, that means unlike process is working.
    1. Check out top left part - pop ups
      Check out top left part – pop ups

Author: Harshvardhan Malpani

PHP Developer based in New Delhi, India. Working as a freelance web developer providing server deployment, website development and maintenance services.

2 thoughts on “How to unlike all Facebook pages from your profile and Clean your newsfeed”

Leave a Reply

Your email address will not be published. Required fields are marked *