1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

'Select All friends' Javascript for Event Invites !

Discussion in 'FaceBook' started by FaceBuilder, Sep 1, 2011.

  1. FaceBuilder

    FaceBuilder Regular Member

    Joined:
    Mar 27, 2011
    Messages:
    337
    Likes Received:
    43
    Occupation:
    Webmaster,Webdesinger
    Here is a javascript to invite all your friends at once on a event !
    Just copy and paste this javascript (working on firefox)

    Code:
    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');
     
    • Thanks Thanks x 2
  2. Continental

    Continental Registered Member

    Joined:
    Sep 1, 2011
    Messages:
    50
    Likes Received:
    4
    Location:
    Northern Europe
    This will be handy, huge thanks!
     
    • Thanks Thanks x 1
  3. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    Doesn't work for me. Firefox, Mac OSX Lion.
     
  4. juicemane

    juicemane Regular Member

    Joined:
    Feb 7, 2011
    Messages:
    286
    Likes Received:
    23
    firefox works but how do you surpass the

    'you have selected to many friends, please narrow it' thing
    it came to the point where i have to enter a captcha code ... but my friends dont get invited.
     
  5. Money Man

    Money Man Elite Member

    Joined:
    Apr 2, 2009
    Messages:
    1,698
    Likes Received:
    751
    Occupation:
    Internet Marketer, Advertisement, Programmer, SEO
    Within this string...

    Code:
    for(var i=0;i<x.length;i++)
    Change the 0 to the number of friends you want to select per batch. The variable "i" is the number of friends that you want to be selected at once and as you can see it holds a numerical value. So if you wanted to select 40 friends at a time, change the 0 to 40 (i=40).

    It is my understanding that Firefox disabled JavaScript Bookmarklets recently so therefore this code (and others like it) shouldn't work in Firefox. At least it's not working for me in Firefox. Which version(s) of Firefox are you guys using?

    You can use Internet Explorer and/or Chrome but you must first paste the string without "javascript:" at the beginning into the URL bar and then manually type it in (once again at the beginning), press enter, and it should work (in IE and/or Chrome that is). You might have to scroll down a bit within your friend list in which you want to invite. At least this has been my experience as of late.
     
    • Thanks Thanks x 1
  6. Money Man

    Money Man Elite Member

    Joined:
    Apr 2, 2009
    Messages:
    1,698
    Likes Received:
    751
    Occupation:
    Internet Marketer, Advertisement, Programmer, SEO
    I would personally stick with 40 but no more than 50. I have been able to send out 100 invites in the past without a problem though so feel free to test it out. :)
     
  7. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
    Yeah, same here. I've heard about this crazy thing of Firefox :(
     
  8. Money Man

    Money Man Elite Member

    Joined:
    Apr 2, 2009
    Messages:
    1,698
    Likes Received:
    751
    Occupation:
    Internet Marketer, Advertisement, Programmer, SEO
    Just use Chrome and/or IE.