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.
Try this out : javascript:var inputs = document.getElementsByClassName('_42ft _4jy0 _4jy3 _517h _51sy'); for(var i=0; i<inputs.length;i++) { inputs.click(); }
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 ?
@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
Just to share, i found a working one. 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.
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');
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.
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.
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
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.