See comments section for more up-to-date versions of the script. The original script is from 2014 and will not work as is.
- Open news feed preferences on your Facebook menu (browser)
- Click people or pages
- Scroll down (or click see more) until your full list is loaded
- Run the script in your browser console
Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.
if it doesn't work for someone , u should check that the aria-label of the unfollow button or anything is "Toggle to follow" if ur using facebook in another language it might change acordingly , so anyway , just insepect the button unfollow and replace the label
for me , im using Facebook in french and the script is this one
// Facebook unfollow all people, groups, and pages.
var follows = document.querySelectorAll('div[aria-label="Bouton pour s’abonner"]');
var delay = 500;
var i = 0;
function unfollow() {
if (i == follows.length) {
console.log('Unfollowed All (', follows.length, ') Successfully.');
return;
}
var remaining = ((follows.length - i) * (delay+500) / 100).toFixed(0);
console.log(
'Unfollowing', i + 1, 'of', follows.length + ', ~', remaining + 's',
'remaining…');
follows[i].click();
i = i + 1;
setTimeout(unfollow, Math.floor(500 + Math.random() * delay * 1));
}
unfollow();