Kotnik blogs - thoughts and technicalities

Clean your Facebook wall

Posted: May 08, 2014   |  Tags: facebook selenium python

While being a great platform to keep up with family, friends and acquaintances, not to mention being spied upon, Facebook is very actual - the current moment is everything. Looking through previous post reveils past concerns and music you once liked. There's not much value in that.

I wanted to delete my old posts, but the job is very tedious. It is obvious that Facebook doesn't want to you do it. So, shortly, I wrote a script that does that for me using Selenium, you can get it from this gist on Github.

I'll describe the easiest way to use it. First, create virtual environment:

mkvirtualenv -p /usr/bin/python2.7 fbcleaner
workon fbcleaner
pip install selenium

Download the gist, and simply run it with python. Then sit back and watch the history disappear. Or do something more interesting in the meantime.

Note: if you have a lot of posts in old events, you will have issues since those can't be deleted. You can update script to catch that popup easily.

If you found an error in this post, please fix it or notify me.