Blog

Disconnect all your facebook logins from websites

If like me you’ve logged in 100s of website since you joined facebook (wow, already 11 years ago…) but have decided to cut all ties, here’s a trick to do it quickly. Usually in the backend you need to select each checkbox one by one, which might take a little while if you have maaany apps.

Here’s a few easy steps to get rid of it all.

Firstly, log in to your facebook and go to your Settings, in the drop-down menu.

Secondly, go the Apps and Websites tab on the left.

Not my actual backend (although I did have Tinder). I already deleted all my apps, so I needed an example to illustrate.

You see that there are plenty of checkboxes. It would take a little while to select them all, which is why I made this article.

Thirdly, open the Inspect elements window to access the source code of the website, click on the Console tab and copy and paste the script in the next step. Not every browser have the Inspect elements option available by default, if it is not your case, check how to do it here.

You cheeky bastards, “it is a scam and will give them access to your account”… yeah yeah.

Fourthly, Facebook warns you that if somebody tells your to write something, it’s a scam, etc. so I’ll walk you through this very simple script.

// Takes all the elements on the page
var allElements = document.getElementsByTagName('*');

// Goes through the page to ask everybody if they are a checkbox
for (var i = 0, n = allElements.length; i < n; i++) {
  
  // Here you can see it says "Yo, is your role to be a checkbox?"
  if (allElements[i].getAttribute("role") == "checkbox") {
    
    // If it's like "Yo, yes, I'm a checkbox", then it clicks it
    allElements[i].click();
  }
}

Obviously, it’s not complex enough to somehow get your logins or whatever. Not even sure it’s possible, it’s just facebook being like “Nooo, leave us alone and spy on you in peaaaaace 😭”

Fively, now all the checkboxes are selected, simply click Remove and you’re done!

Notes

After I did this, I got an email from a few websites saying “You’ve disconnected your facebook account, please set a password if you want to log in”, which is cool, because it means all my account still exists, they just aren’t spied on by facebook.