Skip to content

Instantly share code, notes, and snippets.

@guiliredu
Last active September 14, 2024 17:48
Show Gist options
  • Save guiliredu/ef83ac2c81452a7116956f3fd73b406d to your computer and use it in GitHub Desktop.
Save guiliredu/ef83ac2c81452a7116956f3fd73b406d to your computer and use it in GitHub Desktop.
Facebook - Script to auto invite people who liked a page post do like the page
var buttons;
buttons = document.getElementsByClassName('_42ft');
for (var i = 0; i < buttons.length; i++) {
if(buttons[i].getAttribute('ajaxify') != null){
if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){
buttons[i].click();
}
}
}

How to use

  • Open the facebook window with people yuo want to invite
  • Copy the code and place on your browser url input OR open console and place
  • To use in the browser url input, copy the code below:
javascript:var buttons; buttons = document.getElementsByClassName('_42ft'); for (var i = 0; i < buttons.length; i++) { if(buttons[i].getAttribute('ajaxify') != null){ if(buttons[i].getAttribute('ajaxify').indexOf('invite') != -1){ buttons[i].click(); } } }
@Shurshik
Copy link

2024 and wondering what everyone else is using ;-;

I use this paid extension: https://www.invitelikecomment.com/en/ at the end it was better to pay and be sure the extension is safe, this link is here since 2019 and still works

@piranhap
Copy link

piranhap commented May 3, 2024

I understand but part of me feels like there's gotta be some free open-source version for a script, right?

@Shurshik
Copy link

I understand but part of me feels like there's gotta be some free open-source version for a script, right?

As I know there is no working open source version. Now only the paid one works perfectly, free version isn't good anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment