How to Invite All on Facebook | New Code
How to invite all your Facebook friends to an event at once, since the previous code has changed.
Facebook has once again changed the “invite your friends” functionality, which powers suggestions and invitations to events, groups, pages, etc. I'm not a fan of mass invites to everyone. Best practices is to have your friend list separated by City, Interests, etc. I have several lists such as Miami area, Art, Press, Live Music Lovers, Miami Mama's - this helps me send invites to people who I think will have a genuine interest and not bombard my followers with invites that don't pertain to them.
To select all your new friends in the new interface you can use this code, tested under Safari 5.0.4, Chrome 10 and Firefox 4 (should work also under IE).
javascript:var x=document.getElementsByTagName("input");for(var i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}}; alert('Done, all your friends have been selected');
In order to use this code, copy and paste it in the address bar of your browser after you have opened the “invite your friends” dialog and AFTER YOU HAVE SCROLLED DOWN THE LIST, press ENTER.
Make sure that – especially in Chrome – the “javascript:” string at the beginning is not removed; if it is removed, add it at the beginning of the string again, before pressing ENTER.
Important note: as said, you HAVE to scroll down your friends list in order to invite all your friends: in fact the new interface only loads few friends via AJAX at a given time. If you have a lot of friends, this will take longer. If you get a slow script prompt, click OK.
DISCLAIMER: I DO NOT ASSUME ANY RESPONSIBILITY WHATSOEVER FOR THE USAGE OF THIS CODE; IF YOU GET BANNED BY FACEBOOK, OR ANYTHING ELSE, YOU WILL BE CLAIMED THE SOLE RESPONSIBLE FOR SUCH ACTIONS. Don't abuse it, don't spam people - follow my best practices above and you should be OK. :)