You would have tried sometimes to invite your facebook friends to any group or page . If you have tried you might have noticed that you cant select all facebook friends at once , you have to click on each one of your friend one at a time to invite . Don’t know why facebook doesn’t allow to “select all ” friends when sending an invite . But don’t worry here few solutions .
1 Select all facebook friend JavaScript
1. Go to your Event, Group or page and click “Invite People” or “suggest to friends “.
2. Once the page has loaded you should see all of your friends
3. At this point, copy and paste the javascript code below into your Web browser’s address bar, then hit ‘Enter’.
javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}
2. Facebook invite all Browser extensions .
Apart from javascripts you can also you use Google Chrome Facebook invite all extension . Facebook Inviter chrome extension Firefox users can also use greasemonkey Invite all Script
Update 9/9/2011
As facebook has changed invite box style the above scripts are not working so here are some new scripts that are working so far . First scroll your friends list to the bottom, until they appear all. Then in your address bar input any of the below script :
Script 1.
javascript:elms=document.getElementsByName(“checkableitems[]“);for%20%20(i=0;i<elms.length;i++){if%20(elms[i].type=”checkbox”%20%20)elms[i].click()};
Script 2.
javascript:function check_all_in_document(doc){var c=new Array();c=doc.getElementsByTagName(‘input’);for(var i=0;i<c.length;i++){if(c[i].type==’checkbox’){c[i].click();}}}check_all_in_document(window.document);for(var j=0;j<window.frames.length;j++){check_all_in_document(window.frames[j].document);}
Script 3.
javascript:elms=document.getElementsByName(“checkableitems[]“);
currentFriendClick=0;friendClickTotal=elms.length;friendClickInterval = setInterval(“clickCurrentFriend()”, 15);
function clickCurrentFriend()
{
if(elms[currentFriendClick].type=”checkbox”) elms[currentFriendClick].click();
currentFriendClick++;
if(currentFriendClick >= friendClickTotal) clearInterval(friendClickInterval);
}
If you’re using Google Chrome, you may need to re-add the “javascript:” part to the beginning after pasting it in your address bar.

many people are worried now a days to copy paste a script into their browser concerning security point but using extension might be useful to them..
well if have little knowledge about javascript , you can check whether the script is harmful or not , harmful scripts generally steal ur cookies , and contains terms like document.cookies or they redirect u to a malicious page such scripts contains document.location or document.redirect
so you can check about any scripts safety
Thanks for sharing. I will install the greasemonkey script in my firefox right now
Akash Malik recently posted..How To- Close an application in Apple iPhone 4
Yo. Just thought I’d let you know that the codes above don’t work in Chrome.
Nabil recently posted..SEO for YouTube
Its working for chrome as well I have used it , it takes time sometimes .
Unfortunately none of these codes is working now..
Joseph recently posted..Forum install services
Hi guys, here is some code that works. It’s based on the old ‘select all’ query, but allows you to select blocks of 500 at a time. If you select all on 4500 friends it won’t work, Facebook has set a limit of around 900 or so (not sure how much exactly).
Just change the block size for each group of 500 invites by changing the numbers in the ‘&& i > 1499 && i 0 && i 499 && i 1499 && i < 2000){fs.click(elms[fid]);}}
@ New code
can u please explain more where to change his..Is it for google chrome extension, or no?
Thank u!
the code are not working now facebook has blocked them , you can use chrome extension or firefox grease monkey script its working fine
I’ll try and fit it here again: javascript:var i=0;elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){i++;if(typeof elms[fid] === ‘object’ && i > 0 && i 0 && i 999 && i < 2000" etc … until you reach 5000
No it just won’t fit, send me a message through Facebook and I will send it to you
facebook and ‘normal’ comments?
a bit too much imho.
rather choose one.
I personally prefers facebook comments , but many bloggers like normal comments as it allows them to add their url , so on their request I keeping both
None of these are working for chrome…
None of these seems to work now. I’ve tried Firefox and Chrome.
Whay do Facebook make it so difficult?