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

Javascript Code to Invite All Facebook Friends to Like FanPage

Discussion in 'FaceBook' started by seobrain, Nov 12, 2011.

  1. seobrain

    seobrain Newbie

    Joined:
    Nov 11, 2011
    Messages:
    17
    Likes Received:
    7
    Occupation:
    Internet marketer, Pro Blogger
    Location:
    Wherever there's a good WiFi Connection
    I just got through searching for ways to invite all my friend (well over 2000) to like my new fan page.

    I ran into a few codes that don't work anymore but I just tried this and it works as of 11/12/2011 using Firefox 7.x

    With the latest of facebook updates, the old code trick to send invitation to all friends does not work anymore. Moreover, you?ve installed the last Firefox, and you can?t use anymore the url address bar to input javascript commands.

    It was the same for me. But I?ve found this path to invite all your friends to your new fan page, follow this steps.

    1) Use Firefox (I used 7.x)

    2) Open your facebook fan page.

    3) Click on ?Invite friends?.

    4) The grid of friends is opened.

    5) Select ?Search all friends? and scroll down, so all your friends are loaded.

    6) Press Ctrl+Shift+K (Command + Shift + K on Macs)

    7) A firefox panel is opened on the top of the page, here you can put the javascript code (put the two lines in a single line):

    Code:
    elms=document.getElementById('pop_content').getElementsByTagName('li');
    for(var fid in elms){if(typeof elms[fid] === 'object'){elms[fid].click();}}
    This code will select each friend and perform a click on it.

    8) Press ?enter?.

    9) Wait the selecetion (it could take some minute).

    10) Press ?submit?

    This saved me tons of time because I'm not clicking on 2000+ friends individually..

    Enjoy
     
    • Thanks Thanks x 7
  2. Submission Zone

    Submission Zone Junior Member

    Joined:
    May 8, 2011
    Messages:
    197
    Likes Received:
    44
    Location:
    eWorld
    Thanks ...let me try
     
  3. hackgen

    hackgen Regular Member

    Joined:
    Sep 23, 2011
    Messages:
    350
    Likes Received:
    103
    Location:
    127.0.0.1
    Works fine
     
  4. ThumperTM

    ThumperTM Registered Member

    Joined:
    Jun 14, 2011
    Messages:
    84
    Likes Received:
    2
    Location:
    Kosovo ( Prisitine ) -_^
    I this works only for few of friends... not all of them :(


    do you have idea why?

    Thanks for share
     
  5. Website

    Website Supreme Member

    Joined:
    Feb 8, 2008
    Messages:
    1,291
    Likes Received:
    286
    Location:
    whitehouse
    yea there were codes that invited all the friends back in early 2010..obviously, these are all patched and Facebook puts strict limits on invites. I think it's 50 friends capped...
     
  6. EmpireQuality

    EmpireQuality Elite Member

    Joined:
    Jan 18, 2010
    Messages:
    1,903
    Likes Received:
    383
    someone else posted a code just like this the other day and it worked fine for me. a similar code, if not the same code. it selected all friends for me fine. but is it true that even if all friends are selected that only 40 - 50 of them get the invite?
     
  7. ThumperTM

    ThumperTM Registered Member

    Joined:
    Jun 14, 2011
    Messages:
    84
    Likes Received:
    2
    Location:
    Kosovo ( Prisitine ) -_^
    ^^ can you link us to this post?
     
  8. EmpireQuality

    EmpireQuality Elite Member

    Joined:
    Jan 18, 2010
    Messages:
    1,903
    Likes Received:
    383
  9. bhstudent

    bhstudent Junior Member

    Joined:
    Nov 13, 2011
    Messages:
    130
    Likes Received:
    19
    Works like a charm... Thanks for sharing