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

Questions to add friends

Discussion in 'FaceBook' started by falkuto, Jul 15, 2014.

  1. falkuto

    falkuto Newbie

    Joined:
    Jan 10, 2013
    Messages:
    10
    Likes Received:
    2
    Greetings friends!

    There is some code to massively add people from one group to my facebook account?

    example

    Sin título.jpg

    Is there some code console?

    excuse my bad English, but I speak Spanish and I'm using the google translator.
     
  2. sashablack

    sashablack Elite Member

    Joined:
    Jan 8, 2010
    Messages:
    3,697
    Likes Received:
    2,068
    Gender:
    Male
    hmmm first time I see this, maybe this was an error, but i don't know anyway that you are able to do this! Goodluck let us know if you figure it out!
     
  3. falkuto

    falkuto Newbie

    Joined:
    Jan 10, 2013
    Messages:
    10
    Likes Received:
    2
    Could use some javascript console, but I have no idea how to do it

    So you see someone you are interested in, as this would be powerful.



    HTML:
    javascript:var inputs = document.getElementsByClassName('uiButton _1sm'); 
     for(var i=0; i<inputs.length;i++) { 
     inputs[i].click(); 
     }
     
  4. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,434
    Likes Received:
    466
    Gender:
    Male
    Location:
    Portugal

    And that code is not working?
     
  5. falkuto

    falkuto Newbie

    Joined:
    Jan 10, 2013
    Messages:
    10
    Likes Received:
    2




    This code is to send invitations to join your Fan page, just opens a pop up to send those invitations.

    But the point is to create one that can add mass like that other code, some little detail is escaping.

    sorry for my bad English, I speak Spanish
     
  6. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,434
    Likes Received:
    466
    Gender:
    Male
    Location:
    Portugal
    Sorry I didn't understand what you want, can you explain in spanish just once? I understand spanish since I'm portuguese yet I don't write/speak on spanish.
     
  7. falkuto

    falkuto Newbie

    Joined:
    Jan 10, 2013
    Messages:
    10
    Likes Received:
    2
    Hola saludos !!, el codigo que coloqué anteriormente es para enviar invitaciones masivamente a tus amigos para que se unan a tu fanspage, y una vez colocado ese codigo en la consola se envian automaticamente a todos.

    Ahora lo que pregunto es el ¿cómo? puedo agregar masivamente a personas de esa manera, en el codigo que utilice para enviar las invitaciones tambien se abre una ventana pop up con los amigos que tienes.

    Entonces si se puede enviar invitaciones, se puede hacer lo mismo con los amigos es asi?

    En lugar de decir "agregar amigos", decia "invitar".
     
  8. thefixer

    thefixer Regular Member

    Joined:
    Sep 2, 2013
    Messages:
    242
    Likes Received:
    39
    Home Page:
    Is this j-script working?
     
  9. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,434
    Likes Received:
    466
    Gender:
    Male
    Location:
    Portugal
    Oh, now I got it! :)

    Give me some minutes and I'll give you a code so you can use it ;)
     
  10. falkuto

    falkuto Newbie

    Joined:
    Jan 10, 2013
    Messages:
    10
    Likes Received:
    2
    Tanks :) friend !!
     
  11. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,434
    Likes Received:
    466
    Gender:
    Male
    Location:
    Portugal
    Sorry for the delay, I had to go to bed after I write the last message.

    Here is the script, it took me a while to make it, I hope it works with you:

    HTML:
    var abc = 0, static, found=false, interval=500;
    function dostuff() {
      if(!found){
        if(document.getElementsByClassName("_42ft _4jy0 _4jy3 _517h")[abc].getAttribute("data-reactid")!=null{
          found=true;
          static=abc;
          document.getElementsByClassName("_42ft _4jy0 _4jy3 _517h")[static].click();
        }else{
          console.log("BUTTON TO INVITE FRIEND NOT FOUND, CHECKING NEXT BUTTON "+abc);
        }
      }else{
        document.getElementsByClassName("_42ft _4jy0 _4jy3 _517h")[static].click();
        console.log("INVITED FRIEND "+abc);
      }
    
      if(abc < document.getElementsByClassName("_42ft _4jy0 _4jy3 _517h").length){
        abc++;
        setTimeout(dostuff,interval);
      }else{
        var objDiv = document.getElementsByClassName("uiScrollableAreaWrap")[3];
        objDiv.scrollTop = objDiv.scrollHeight;
        console.log("LOADED MORE FRIENDS TO INVITE");
        if(found){
          found=false;
          static=0;
          abc=0;
          setTimeout(dostuff,interval);
        }else{
          console.log("FINISHED INVITING ALL FRIENDS");
        }
      }
    }
    
    setTimeout(dostuff, interval);


    Before you put in the console and run it (to run it, just paste it into the console and press enter), you need to click on the link that says something like "See all friends" on the page where you invite your friends.

    I also placed some info for you to know what the script is doing, and that information will be shown in the console. You will also know when all friends were invited and the script will stop after that. :)

    There is a variable at the beggining which is named "interval". You can change it to a lower number if you want the script to run faster yet I wouldn't advice to put a lower number than 50 because some friends may not be invited. I tested with 500 and with 50 and it worked perfectly.
     
    • Thanks Thanks x 1
    Last edited: Jul 16, 2014
  12. falkuto

    falkuto Newbie

    Joined:
    Jan 10, 2013
    Messages:
    10
    Likes Received:
    2
    My friend tanks !!!

    Casi no hablo ingles, pero muchisiiiimas gracias, funciona :D
     
    • Thanks Thanks x 1
  13. mnunes532

    mnunes532 Supreme Member

    Joined:
    Jan 21, 2014
    Messages:
    1,434
    Likes Received:
    466
    Gender:
    Male
    Location:
    Portugal
    You are welcome, if you need anything more, just send me a private message. ;)