Download Imacros
If you don’t know what imacros is, you might want to read up on it here. It looks a bit intimidating at first, but imacros is seriously the easiest automation software/plugin to use.
I recommend imacros for Firefox. You can install the plugin here.
To open up imacros in the sidebar, press F8. Once you’ve got imacros on your Firefox, do a mock record – meaning, go to Play > Record > Then click Stop right away. Then click Save. Enter a descriptive name for it like “delete Facebook groups .” You should now see it in the left sidebar. Right click on the .iim file and go to “edit macro.”
The Imacros Script (Delete All Facebook groups) – Facebook has changed, please read my update note at the bottom of this post
Paste in:
VERSION BUILD=6111228 RECORDER=FX <– note that this line will be different if you have a different version of imacros
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT 100
SET !DIALOGMANAGER NO
TAG POS=1 TYPE=A ATTR=TXT:Leave<SP>Group
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:remove&&VALUE:Remove
WAIT SECONDS=2
Now you should be already on the Facebook Groups page itself BEFORE running this macro. When I ran it, there was one instance of a timeout, but that didn’t stop the script itself, so just click “close” on the timeout notice when you see it and it’ll be fine.
*** IMPORTANT *** Remember to click Play(loop) when running this macro and specify however many groups you have. This will loop the script, so it’ll run X amount of times.
You may be wondering… well, what if I don’t want to delete ALL my groups? Well, then it will be a bit tricky. What I’d do is, open these groups in a new tab, so when you’ve wiped out all the groups, you can add them back easily.
The Imacros Script (Delete All Facebook Wall Posts) – Facebook has changed, please read my update note at the bottom of this post
Repeat the same thing. Go to Play > Record > Then click Stop right away. Click save, enter a name, and then edit the .iim file.
Then paste in:
VERSION BUILD=6111228 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT 100
SET !DIALOGMANAGER NO
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
TAG POS=1 TYPE=SPAN ATTR=TXT:Remove
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete_story&&VALUE:Delete
WAIT SECONDS=3
REFRESH
You may get multiple errors when running this, that’s why I add in “refresh” at the end of the script so it’ll refresh the page. It’s very likely that you have to make some edits or changes. You may need to click “older posts” on your Facebook wall, especially closer to the end of your wall posts. This script is easy to modify and should be easy to understand. I’m assuming you have at least some basic knowledge of it.
***UPDATE*** (Nov 5, 2011)
Facebook made changes recently (as they like to do all the time) that make the iMacros scripts I posted become outdated.