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

Facebook Invite Script anyone?

Discussion in 'Social Networking Sites' started by DaPlayer1, Dec 28, 2016.

  1. DaPlayer1

    DaPlayer1 Junior Member

    Joined:
    Apr 28, 2016
    Messages:
    150
    Likes Received:
    33
    Occupation:
    Social media + metrics
    I use a lot of FaceAds for grow my FB page, didnt found any much better method.

    But takes a lot of time to invite everyone, anyone have a invite script?

    I got an addfriend script, im looking for something like it, but for invite.

    Or any other method?

    Thank you.
     
  2. DaPlayer1

    DaPlayer1 Junior Member

    Joined:
    Apr 28, 2016
    Messages:
    150
    Likes Received:
    33
    Occupation:
    Social media + metrics
    No one?! I think this script rlly will help a lot of people :(
     
  3. happylama

    happylama Junior Member

    Joined:
    Aug 1, 2016
    Messages:
    142
    Likes Received:
    34
    Gender:
    Male
    do you mean the direct invite or iniviting people who already liked a post ?
     
  4. DaPlayer1

    DaPlayer1 Junior Member

    Joined:
    Apr 28, 2016
    Messages:
    150
    Likes Received:
    33
    Occupation:
    Social media + metrics
    Invite people who already liked a post.

    Anyone have it?
     
  5. Emil16

    Emil16 Newbie

    Joined:
    Dec 26, 2016
    Messages:
    37
    Likes Received:
    2
    Gender:
    Female
    Maybe you can edit the AddFriend script you have? Which language it is?
     
  6. happylama

    happylama Junior Member

    Joined:
    Aug 1, 2016
    Messages:
    142
    Likes Received:
    34
    Gender:
    Male
    let me see if I can make you one
     
  7. happylama

    happylama Junior Member

    Joined:
    Aug 1, 2016
    Messages:
    142
    Likes Received:
    34
    Gender:
    Male
    Try this out :
    javascript:var inputs = document.getElementsByClassName('_42ft _4jy0 _4jy3 _517h _51sy'); for(var i=0; i<inputs.length;i++) { inputs.click(); }
     
  8. Emil16

    Emil16 Newbie

    Joined:
    Dec 26, 2016
    Messages:
    37
    Likes Received:
    2
    Gender:
    Female
    do not forget to change class name when Facebook will do it
     
  9. DaPlayer1

    DaPlayer1 Junior Member

    Joined:
    Apr 28, 2016
    Messages:
    150
    Likes Received:
    33
    Occupation:
    Social media + metrics
    Sry didnt get it, how to change name class in:
    javascript:var inputs = document.getElementsByClassName('_42ft _4jy0 _4jy3 _517h _51sy'); for(var i=0; i<inputs.length;i++) { inputs.click(); }

    And what i put? Facebook.com ?
     
  10. Emil16

    Emil16 Newbie

    Joined:
    Dec 26, 2016
    Messages:
    37
    Likes Received:
    2
    Gender:
    Female
    @happylama gave you a javascript:
    document.getElementsByClassName('_42ft _4jy0 _4jy3 _517h _51sy'), gets all the elements by class name = "_42ft _4jy0 _4jy3 _517h _51sy"
    Currently i don't have access to facebook, so i cannot verify, but i assume the class name is correct (or should be).
    But you should verify yourself, the button you are clicking for invite (or link, whatever is) should have the above class name, otherwise it will not find the element on page.
    Just be aware that class name matches, or change it according to your element class name.
    Also, take in account that class name could change, facebook could change it in a future. So when your script will stop working just verify the class name from you invite button.

    If you have more questions just write down, i will try to explain more :)
     
    • Thanks Thanks x 1
  11. DaPlayer1

    DaPlayer1 Junior Member

    Joined:
    Apr 28, 2016
    Messages:
    150
    Likes Received:
    33
    Occupation:
    Social media + metrics
    Just to share, i found a working one. :D
    Open console and type:

    var inputs = document.querySelectorAll('a._42ft._4jy0._4jy3._517h');
    for(var i=1; i<inputs.length;i++) {
    inputs.click();
    }


    Hope i helped, good luck.
     
  12. Emil16

    Emil16 Newbie

    Joined:
    Dec 26, 2016
    Messages:
    37
    Likes Received:
    2
    Gender:
    Female
    i think there should be "inputs.click();" in your for loop.
    Also, one difference between querySelectorAll and getElementsByClassName is:
    if html changes (as i saw facebook is having a dynamic DOM injection) querySelectorAll will return the same old elements (inputs variable will not change, even the elements where dynamically injected), but getElementsByClassName will always return the real elements (stackoverflow com /questions/30473141/difference-between-getelementsbyclassname-and-queryselectorall).
    I would prefer document.getElementsByClassName('a._42ft._4jy0._4jy3._517h');
     
  13. DaPlayer1

    DaPlayer1 Junior Member

    Joined:
    Apr 28, 2016
    Messages:
    150
    Likes Received:
    33
    Occupation:
    Social media + metrics
    i dont understand much about javascript, but this is working for me.
    the only one worked atm.

    the only bad point is: He also autojoin in the groups Facebook r suggesting.
     
  14. Emil16

    Emil16 Newbie

    Joined:
    Dec 26, 2016
    Messages:
    37
    Likes Received:
    2
    Gender:
    Female
    Class names are not unique in html, so there could be other elements containing the class name you are searching for, so it will click all of them. Just inspect the html and search for class name usages and you will find all the elements containing it. For your case you need to limit the result with some more restrictions like another class name, or element tag name, etc.
     
    • Thanks Thanks x 1
  15. DaPlayer1

    DaPlayer1 Junior Member

    Joined:
    Apr 28, 2016
    Messages:
    150
    Likes Received:
    33
    Occupation:
    Social media + metrics
    I dont know what happened, it was working like a charm yesterday, did more then 2k invites.
    But today not working , "inputs.click is not a function"
    Will try to fix or search a solution and will share here.

    Ty for feedback @Emil16
     
  16. Emil16

    Emil16 Newbie

    Joined:
    Dec 26, 2016
    Messages:
    37
    Likes Received:
    2
    Gender:
    Female
    inputs.click is not a function - it means that the element was not found, or at least not the correct one. Try to send me your html to see what is happening cause i don't have a fb account right now.