1 Flares 1 Flares ×

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]);}}


select all facebook for page like

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.


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.

currentFriendClick=0;friendClickTotal=elms.length;friendClickInterval = setInterval(“clickCurrentFriend()”, 15);
function clickCurrentFriend()
if(elms[currentFriendClick].type=”checkbox”) elms[currentFriendClick].click();
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.