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

[CODE] Invite All Friends To Fan Page

Discussion in 'FaceBook' started by pyronaut, Jul 29, 2010.

  1. pyronaut

    pyronaut Executive VIP

    Joined:
    Dec 9, 2008
    Messages:
    1,229
    Likes Received:
    1,422
    I'm not even sure if this is used nowadays. I don't do anything myself with facebook so not sure if it is useful to people in todays world, or if you all have bots that do it for you anyway :)

    If you do need it. Then you are lucky that today is quite a slow day at work :) (Gap in projects).

    Here you go :

    USE INTERNET EXPLORER
    - Go to your fan page
    - Click suggest to friends
    - Copy and paste the following code direct into the address bar. Then press enter.

    Code:
    javascript:var ParentNode = document.getElementById('friends');
    var Children = ParentNode.childNodes;
    for(var i=0; i < Children.length; i++)
    {
    	Children[i].childNodes[0].click();
    }
    
    Remember this only works in IE. No other browser. I could probably make it work in them, but for now I couldn't care less.

    Also, for those of you who have been hanging out for this (If there is any of you still out there), just get off your ass and do it yourself. I don't code in raw javascript ever in my programming career, and I googled basically every single line.

    Enjoy!
     
    • Thanks Thanks x 5
  2. jmason616

    jmason616 Regular Member

    Joined:
    Aug 21, 2009
    Messages:
    249
    Likes Received:
    403
    It doesn't matter if you select all your friends anymore. Only a certain amount of invites get sent anyways. Facebook changed things. Thanks for the code though!
     
  3. pyronaut

    pyronaut Executive VIP

    Joined:
    Dec 9, 2008
    Messages:
    1,229
    Likes Received:
    1,422
    Heh. Shows how much I keep track of things :). I just saw threads asking for it so may aswell fulfil that request.
     
  4. Forexking

    Forexking Junior Member

    Joined:
    Jul 12, 2010
    Messages:
    114
    Likes Received:
    16
    OMG I want to F'''''''''' kiss you, thanks for posting!

    If you want some free advertising on FB let me know ;)
     
    Last edited: Jul 29, 2010
  5. sunshyne

    sunshyne Regular Member

    Joined:
    Jun 17, 2010
    Messages:
    359
    Likes Received:
    54
    Location:
    localhost
    sucks I dont want to mess with my friends on FB, need to access a 5k or bigger account and then hit this in there, good work mate
     
  6. SpiderWebMaster

    SpiderWebMaster Power Member

    Joined:
    Jan 24, 2009
    Messages:
    617
    Likes Received:
    519
    Occupation:
    I don't have a job...
    Location:
    /dev/null

    Are you trying to beat the "BHW neg rep contest"??
     
  7. yourlif2

    yourlif2 Newbie

    Joined:
    May 3, 2009
    Messages:
    14
    Likes Received:
    4
    Occupation:
    web designer
    Location:
    Israel
    Home Page:
    Here's a code that works for all browsers and much shorter

    Code:
    javascript:fs.select_all()
     
    • Thanks Thanks x 2
  8. fun4uoc

    fun4uoc Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 25, 2007
    Messages:
    1,199
    Likes Received:
    1,041
    Location:
    ☆ ♔ ☆ ♔ ☆ ♔ ☆
    Don't let the door hit you in the ass on the way out. All I have seen from you is lame ass posts asking questions about things that have been answered a million times on this forum. Seems like you are doing nothing more than trying to increase your post count.
     
  9. hoot33

    hoot33 Regular Member

    Joined:
    Sep 2, 2009
    Messages:
    290
    Likes Received:
    56

    For a person that has had as little success as you have in IM, crying about google and your customers hating you because you suck at your job. You sure do talk alot of shit.
     
    • Thanks Thanks x 1
  10. fun4uoc

    fun4uoc Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 25, 2007
    Messages:
    1,199
    Likes Received:
    1,041
    Location:
    ☆ ♔ ☆ ♔ ☆ ♔ ☆
    Once again, stating something that everyone already knows and has been discussed here at length.

    Thanks again Captain Obvious.
     
    • Thanks Thanks x 1
  11. sangbiru

    sangbiru Newbie

    Joined:
    Jul 19, 2010
    Messages:
    32
    Likes Received:
    3
    Occupation:
    Blackhatter
    Location:
    BHW
    Home Page:
    thanks for non-working code... :D
     
  12. xplicit

    xplicit BANNED BANNED

    Joined:
    Jul 21, 2008
    Messages:
    1,119
    Likes Received:
    1,053
    They arent java beans, they are probably roaches thats been in your moms basement for quite some time. If you cleaned your basement bedroom more often I am sure you can cut them down to 10-12 tops.
     
    • Thanks Thanks x 3
  13. SpiderWebMaster

    SpiderWebMaster Power Member

    Joined:
    Jan 24, 2009
    Messages:
    617
    Likes Received:
    519
    Occupation:
    I don't have a job...
    Location:
    /dev/null
    Oh yeah, SEOSteve is taking the highway... :D
     
  14. baseballboy2552

    baseballboy2552 Newbie

    Joined:
    Jul 15, 2010
    Messages:
    28
    Likes Received:
    0
    Occupation:
    I sell facebook accounts...
    Location:
    I SELL FACEBOOK ACCOUNTS!! PM ME OR GET ME ON AIM!
    Cool, thanks you...i think i can use this idk..
     
  15. yourlif2

    yourlif2 Newbie

    Joined:
    May 3, 2009
    Messages:
    14
    Likes Received:
    4
    Occupation:
    web designer
    Location:
    Israel
    Home Page:
    SEOSteve Use ATF Cleaner or CCleaner and thank you for taking the credits :)
     
  16. imlol

    imlol Regular Member

    Joined:
    Apr 21, 2010
    Messages:
    318
    Likes Received:
    464
    Location:
    USA
    Im pretty sure these codes do not work. Yea, they select everyone and you can send invites, but click 'suggest page' again. The invites were not sent. I think you can only select 50 or less, send invites, then repeat until all invites are sent
     
  17. hoot33

    hoot33 Regular Member

    Joined:
    Sep 2, 2009
    Messages:
    290
    Likes Received:
    56
    [​IMG]

    Uploaded with ImageShack.us
     
    • Thanks Thanks x 5
  18. hoot33

    hoot33 Regular Member

    Joined:
    Sep 2, 2009
    Messages:
    290
    Likes Received:
    56
    ignore the bad men and eventually theyll go away
     
  19. pyronaut

    pyronaut Executive VIP

    Joined:
    Dec 9, 2008
    Messages:
    1,229
    Likes Received:
    1,422
    You can do this still. Change this line in the original code :

    Code:
    for(var i=0; i < Children.length; i++)
    
    to :

    Code:
    for(var i=0; i < 50; i++)
    
    Fiddle around with the number if you want it to select less/more etc.
     
    • Thanks Thanks x 1
  20. bbrez1

    bbrez1 Power Member

    Joined:
    Feb 21, 2009
    Messages:
    675
    Likes Received:
    2,360
    Code:
    javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}
    or:

    Code:
    javascript:fs.select_all();
    However this has been shared before hundreds of times and everybody knows about it.