In the rare occasion when I am trying to mass promote an event or fan page on Facebook, I always find it tedious to have to select all of my friends for the invite. Granted, I have a very good idea of who I should invite to the event or page, but sometimes I forget or assume that certain people wouldn’t take interest what I am promoting. Like anyone else, I’d much rather have the daunting task automated for me.
Facebook is constantly changing their website behind the scenes, and with these changes, old code tricks do not seem to work anymore. Fortunately, I was able to find this script and it works out great with the current version of Facebook (July, 30, 2011).
By pasting the following code into the URL box and hitting enter, this will execute a loop that will check all unchecked boxes. You can even see the process occur in realtime:
if(currentFriendClick >= friendClickTotal) clearInterval(friendClickInterval);
If you are having problems with copying and pasting this script, please read the update below.
When using this script, though, you must understand that when the the invite window appears to invite your friends, not all of your friends have been loaded. Facebook uses a lazy loading function to optimize performance. To ensure that you are actually inviting all of your friends, keeping scrolling in your friends list until the scroll bar is at the absolute bottom and doesn’t jump. You’ll know because your friends are arranged alphabetically by last time. Below are some visual examples of what I am trying to convey.
To reiterate, you’ll notice the scroll bar constantly moving up a few notches as you get closer to scrolling to the bottom until you reach the end of your friend’s list. Once you hit the bottom of the list, paste the provided code into the URL bar and watch the script do its thing.
I tested this using Google Chrome 12.0.742.122 and it worked flawlessly. Let me know how it works in other browsers.
Update: If copying and pasting the above text does not work, please visit this text file and copy and paste the code from it instead.