Facebook Wall JavaScript Delete Bot
This will be very quick, I cannot dedicat much time to this sort of thing at the moment, I have already spent too much time on it. But, as I have shown before I have interest in being able to delete old Facebook wall posts. This is because conversations we have in person are largely ephemeral and I think Facebook should be too, or at least have the ability to be.
I have discovered a new technique to do this, different from my previous shaky attempt this one works very well. This time I have created a JavaScript bot that uses some JQuery that runs in a FireQuery console which is a modification of a popular Firefox extension named FireBug. When doing this, one must remember to click "JQuerif"y so that the script I have written has access to the JQuery library.
To show where the script goes I have include the image below (but of course you'd be on Facebook):
This script is to be run when you are on the Facebook "activity log" page. Within that page you could select, for example, "All," "Your Posts," "Post by others, etc" (I can only confirm it for "your posts," if it comes across an item which you can't delete it will not work) in order to have a bit of extra control over what is deleted.
This post has been brief, details have been left out, but I did want to share this code so that it is out there in case anyone wants to build on it. If I had infinite time I would put this in a Greasemonkey script, and wrap it into some sort of easy to use user interface.
Do note! I am definitely not a JavaScript developer. Despite all the languages I have written, and all the programming courses that I have taken, I have never made a serious attempt to learn JavaScript. In fact, I am very confused by it. For example, being able to have loops and delays in this script presented major difficulties which would have been a breeze in the other languages I have coded in. I am baffled by JavaScript, I am surprised the below works, I am positive there are better ways of writing this, and I suspect there are useless aspects of this script.
Also note, you need to scroll down in your activity log, and reveal all the posts which you want to be deleted in order for them to be deleted. The script does not automatically load them in for you.
Lastly, how do you know when the script ends? It crashes. hehe