How to Invite all your Facebook friends to a Page

Discussion in 'Web Development and Programming' started by Brandon, Jul 31, 2010.

  1. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    Some of you may know about this bit of code, It's been out since summer of 2009 and it still works on Facebook pages.
    If you're on a Facebook page you'll click the link to "Suggest to Friends" and a popup window comes up where you can select your friends.
    Once you get to that page, you insert this code.

    Code:
    javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var  fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}
    into your browser like this
    .
    Hit enter and it may take your browser 10-20 seconds to select all your friends. :rotfl:
    I usually do this and then I'll go thought and un-select the people I don't exactly want to target for this page I'm promoting.

    You can test this out now on our new fanpage :in-love::in-love:
     
    Last edited by a moderator: Jan 7, 2014
  2. Cerberus

    Cerberus Admin Talk Staff

    Joined:
    May 3, 2009
    Messages:
    1,031
    Likes Received:
    500
    Does this still work? I was told that it no longer works. What page must you be on for it to work? I tried it earlier and couldnt get it to work
     
  3. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    I just invited all my friends but a few family members to the General Forums one.

    .

    This is the page you add the code and hit enter or "go" for your browser.
    It takes 10-15 seconds, just be patient.
     
    Last edited by a moderator: Jan 7, 2014
  4. Cerberus

    Cerberus Admin Talk Staff

    Joined:
    May 3, 2009
    Messages:
    1,031
    Likes Received:
    500
    Ahh, so it no longer auto pops the box up. Thats what it is. Thanks. Maybe I can figure out how to make it bring the box back up. But, yeah it used to pop the box up and do it
     
  5. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    It doesn't pop the box up for you?
     
  6. Cerberus

    Cerberus Admin Talk Staff

    Joined:
    May 3, 2009
    Messages:
    1,031
    Likes Received:
    500
    Nope, what browser are you using to do it in? Maybe thats why the box doesnt pop up for me for some reason...
     
  7. Brandon

    Brandon Regular Member

    Joined:
    Jun 1, 2009
    Messages:
    6,602
    Likes Received:
    1,706
    Location:
    Topeka, Kansas
    First Name:
    Brandon
    I use firefox
     

Share This Page