Cleaning out our Facebook account

      2 Comments on Cleaning out our Facebook account

Deleting your Facebook account is carefully possible. Deactivating the account preserve all your data, while deleting it remove everything. This is described in  this wikipedia page.

If we don’t trust FB, we can start cleaning out everything by hand: every post, every message, every image, everything on our Wall. FOREVER. A very slow task to do by hand.

We can also DOWNLOAD our informations: did you know that? Everything you put on FB can be downloaded! Just go to “Account”, “Account Settings”, and click on “Download Your Informations”. That’s great! 🙂

Back to the problem: deleting every single post on our wall. A FOREVER time task. Also we wanna remove also “friend’s” posts.

So I wrote this script for Imacros, a plugin for Chrome, Firefox and maybe for other browsers. This can do the damn job. It need tuning because it’s a mess right now, but in about 10 days and following it from time to time, it took me to the first “Gabriele has joined Facebook” post. Nice, isn’t it? 😉

Here is it, without any warranty:

'
' Facebook Profile Cleaner v0.9b
'
' (C) 2011 Gabriele "asbesto" Zaverio - asbesto@freaknet.org
'
' This program is free software; you can redistribute it and/or
' modify it under the terms of the GNU General Public License as
' published by the Free Software Foundation; either version 2 of
' the License, or (at your option) any later version.
'
' This program is distributed in the hope that it will be
' useful, but WITHOUT ANY WARRANTY; without even the implied
' warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
' See the GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public
' License along with this program; if not, write to the Free
' Software Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA
' 02111-1307 USA
'
' http://www.gnu.org/licenses/gpl-2.0.txt
'
' Note: This is a BETA version, need to be tuned and need also a
' lot of work to become reliable and stable.
'
VERSION BUILD=7031111 RECORDER=FX
SET !ERRORIGNORE YES
SET !TIMEOUT 10
SET !DIALOGMANAGER NO
TAB T=1
'
' We start from our personal profile page, change "asbesto" in
' your profile name.
'
URL GOTO=https://www.facebook.com/asbesto
WAIT SECONDS=5
'
' Now we need to click on "Older Posts" a while, to have
' something to delete. The problem is that while removing
' stuff, you have to click "Older Posts" more and more. I
' haven't solved this problem; from time to time, the script
' stop working because there are no "Older Posts" to be deleted
' and so I started adding other interactions of this part of
' code. At the end of the deletion process I had about 50 of
' them, repeated. Maybe this can be solved with a check on
' the page but I don't know the Imacros languages so good.
' Maybe someone can solve this issue by creating a loop
' that click "Older Posts" since some posts to delete will
' appear on the webpage? ;)
'
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
WAIT SECONDS=1
TAG POS=1 TYPE=A ATTR=TXT:OlderPosts
WAIT SECONDS=1
'
' Now that we have some post to delete, we face another problem.
' There are posts that can be removed simply clicking the "X"
' button and choosing "Remove Post", and other posts that can
' be removed clicking on the "X", choosing "Remove Post..." from
' a drop down menu, and clicking "Remove Post" again. So there
' are two kind of post to be removed. This issue can be solved
' with a check on the posts, but again I don't know Imacros
' languages for doing such a code. Can anyone help? ;)
'
' Note: there are a lot of repeated lines because now it's
' time to DELETE posts, so I will delete as much as I can.
' Again, a loop will be the best choice for this but I
' simply copied the lines again and again. It works. So
' for me it's sufficient.
'
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=3 TYPE=A ATTR=TXT:RemovePost
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=1
TAG POS=23 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=3 TYPE=A ATTR=TXT:RemovePost
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=1
TAG POS=23 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=3 TYPE=A ATTR=TXT:RemovePost
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=1
TAG POS=23 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=3 TYPE=A ATTR=TXT:RemovePost
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=1
TAG POS=23 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=27 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=1
TAG POS=1 TYPE=SPAN ATTR=TXT:RemovePost...
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=2
TAG POS=3 TYPE=A ATTR=TXT:RemovePost
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:ok&&VALUE:RemovePost
WAIT SECONDS=1
TAG POS=23 TYPE=A ATTR=HREF:https://www.facebook.com/asbesto#
WAIT SECONDS=2
'
' end of script. At this time it will start from the beginning.
'
' KNOWN ISSUES: from time to time I had to manually remove
' something, and also I had to add or duplicates lines for
' deletion or for clicking "Older Posts".
'


You can also find new versions clicking here.

I hope this can help! If you make modifications, please let me know, so I can upload a better version on the site.