Skip to content

Instantly share code, notes, and snippets.

@philippebarbosa
Last active August 24, 2022 01:40
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
A simple way to unlike all facebook page in one time !

How to unlike all Facebook page at once

If you want to do cleaning on your Facebook timeline, you may want to unlike all Facebook pages quickly. There is a way for that :

  • Go to firefox and install iMacros
  • Open a text editor (i.e. Notepad, Sublime Text), and paste that code inside :
VERSION BUILD=7401110 RECORDER=FX
TAB T=1
TAG POS=1 TYPE=SPAN ATTR=TXT:Unlike
TAG POS=2 TYPE=SPAN ATTR=TXT:Unlike
TAG POS=3 TYPE=SPAN ATTR=TXT:Unlike
TAG POS=4 TYPE=SPAN ATTR=TXT:Unlike
TAG POS=5 TYPE=SPAN ATTR=TXT:Unlike
WAIT SECONDS=1
  • Save with .iim extension at C:\Users\YouUsername\Documents\iMacros\Macros for Windows or /Users/YourUsername/iMacros/Macros for OsX
  • Go to Facebook (logged) on that page
  • Open iMacros and launch the script, repeat it more needed (i.e. 9999).
  • Because of infinite scrolling from Facebook, you may repeat it few time.
  • You're welcome !
@trievis
Copy link

trievis commented Oct 28, 2020

The script should work with following modification:

var unlike_all = ()=> {
	[].slice.call(document.querySelectorAll('[aria-label="Liked"')).filter(x=>x.innerText.indexOf('Liked') !=-1).map(x=>{x.click()});
	window.scrollTo(0,document.body.scrollHeight);
	window.setTimeout(unlike_all, 3 * 1000)
};
unlike_all();

@OriginalJef
Copy link

If you also want to decline all page like requests: https://gist.github.com/OriginalJef/83381ed15437fc396b27dfc871f48cb8

@erubenz
Copy link

erubenz commented Mar 24, 2021

I tried the script and it deletes only active pages, deleted once stays in likes section. Is it possible to remove them too? Thanks

@ahmedcfx
Copy link

Don't waste your time guys, it's not working.

@SAFAD
Copy link

SAFAD commented Feb 24, 2022

As of 24/02/2022 this is the new and working method: https://gist.github.com/SAFAD/dfc16d4d485aa78031d47c458e7b652e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment