Meta Utility Scripts for removing friends and activity from Facebook & Instagram. This script works best if you plan to go mostly scorched earth.
This script automates actions on Meta apps which may violate their Terms of Service. Use at your own risk. Aggressive use may result in temporary or permanent account restrictions. This is provided for educational purposes only.
Facebook makes it very difficult to bulk remove friends. This should help.
The goal here was not to completely automate this process, but to automate like 85% of it so it would take minutes and not hours with a little bit of hand-holding.
To get this to work:
- Navigate to https://www.facebook.com/friends/list in Chrome
- Open the inspector -> sources -> snippets
- Dump the script into a new snippet
- If
DRY_RUN = true, you'll see the names of your friends that would be deleted - If it's false, they'll actually be deleted (you'll watch the actions being taken on the screen)
- Command + Enter should run the script. You'll watch the screen take the unfriending actions and see the logs in the console
The hand-holding part is that you'll need to buffer up your friends by just scrolling a ton on the left side so the browser is aware of a bunch of friends (instead of the default 20).
Also, from what I can tell, there's no rhyme or reason to how the list of friends is returned which makes it a little hard to dry run the thing since if you refresh your results will be different.
Sometimes you'll get an error that it can't do the unfriending. Not sure why but a refresh will fix it most times.
Facebook will rate limit your actions (like, every action, not just unfriending) after a certain number. Not sure what that is exactly, but it was around 1,300 unfriends for me. Not sure how long you have to wait to have access yet.
Instagram removes previous activities (i.e. likes, comments).
- Navigate to https://www.instagram.com/your_activity/interactions
- Paste the script in the browser dev console.