Samsara Web Design & Optimisation
Random header image... Refresh for more!

Delete Facebook Inbox Messages (NEW)

Bookmark and Share

Here is the new code I have got working for automatically deleting multiple Facebook messages from the Facebook message inbox.

Please note you have to do the following to make it work with your own set up: -

  1. Check the ‘Version Build’ Number matches that of your iMacro version
  2. Make sure your Facebook is set to use https (secure browsing setting)
  3. Re-run if it hits a fault that it does not get past – this has happened to me however it is not so often and makes the deleting of messages much easier than the multi click per message option
  4. Don’t forget to archive any messages you want to keep – you’ll have to do this manually to be able to choose what to keep of course!
  5. You’ll need the iMacros add-on for Firefox to use this script..

iMacros plugin for Firefox can be found through a link on this page

FYI: Whilst you may delete your messages from private messages and chats, if the other person in the conversation does not delete theirs Facebook still has a copy.

You will notice that there are 5 sections to the code, one for each vowel so that it picks up the link to each friends name to know the message to click. Facebook uses the full message ID which will not allow multiple deletes. Loop the iMacro to delete more than five messages.

If anyone can tell me why Facebook does not allow us to turn off chat recording or have a delete all messages option I would love to now!

The code that is currently working for me is below. I just tested it by copying and pasting it into a new iMacro within Firefox and saving under a new name and it is working well.

If you like the code and it is working for you, please share or link to this page, thank you.

VERSION BUILD=7300701 RECORDER=FX
TAB T=1
URL GOTO=https://www.facebook.com/messages/
TAG POS=1 TYPE=STRONG ATTR=TXT:*a*
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=TXT:Actions
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>Messages…
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>All
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete&&VALUE:Delete<SP>conversation
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=STRONG ATTR=TXT:*e*
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=TXT:Actions
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>Messages…
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>All
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete&&VALUE:Delete<SP>conversation
TAG POS=1 TYPE=STRONG ATTR=TXT:*i*
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=TXT:Actions
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>Messages…
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>All
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete&&VALUE:Delete<SP>conversation
TAG POS=1 TYPE=STRONG ATTR=TXT:*o*
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=TXT:Actions
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>Messages…
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>All
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete&&VALUE:Delete<SP>conversation
TAG POS=1 TYPE=STRONG ATTR=TXT:*u*
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=A ATTR=TXT:Actions
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>Messages…
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=SPAN ATTR=TXT:Delete<SP>All
WAIT SECONDS=1
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:delete&&VALUE:Delete<SP>conversation

2 comments

1 Delete Facebook Messages | Samsara Web Services { 01.18.12 at 3:59 pm }

[...] Please note the code below no longer works due to Facebook making changes to their code. New code is here .. Delete Facebook Messages From Inbox [...]

2 iMacro Code to Delete Facebook Messages | Samsara Web Services { 01.18.12 at 4:10 pm }

[...] Please note the code below no longer works due to Facebook making changes to their code. New code is here .. Delete Facebook Messages From Inbox [...]

Leave a Comment