2 Ways to Select All Facebook Friends for Page or Event Invite




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.


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.




I am a blogger and stock market trader and investor. I have passion for gadgets and social media. In my free time I like to read books on technical analysis and have keen interest in national issues. Follow me on Twitter at @abhishek25 and on Google+

15 Responses to “2 Ways to Select All Facebook Friends for Page or Event Invite”

  1. Ajit D says:

    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..

    • Abhishek says:

      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

  2. Akash Malik says:

    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

  3. Nabil says:

    Yo. Just thought I’d let you know that the codes above don’t work in Chrome.
    Nabil recently posted..SEO for YouTube

  4. Joseph says:

    Unfortunately none of these codes is working now..
    Joseph recently posted..Forum install services

  5. New code says:

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

    • Natasa says:

      @ New code
      can u please explain more where to change his..Is it for google chrome extension, or no?
      Thank u!

      • Abhishek says:

        the code are not working now facebook has blocked them , you can use chrome extension or firefox grease monkey script its working fine

  6. New code says:

    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

  7. too much says:

    facebook and ‘normal’ comments?
    a bit too much imho.
    rather choose one.

    • Abhishek says:

      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

  8. J says:

    None of these are working for chrome…

  9. Mart says:

    None of these seems to work now. I’ve tried Firefox and Chrome.
    Whay do Facebook make it so difficult?

Leave a Reply

CommentLuv badge
© 2013 . All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie
Read more:
samsung galaxy music duos specs price
Samsung Galaxy Music Duos Specification and Price

Samsung is continuously maintaining  its dominance in the Indian market by launching new and quality phones. The first new year launch from Samsung...

vlc media player for android
VLC Player Now Available for Android Devices

The very popular desktop media player VLC Media is now available for download for your Android devices . The app...

Close