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

Some useful updates I found:

  1. BIG pages (more than 100 000 likes) can now invite post likers again in the new interface!
  2. If you don't like new interface - just use this extension: https://chrome.google.com/webstore/detail/switch-to-classic-design/oancckmjgaoejmbedngcoiakblhacbog and it will re-enable classic version on your browser!

@andrecostamarques
Copy link

Is there anyway to invite someone whom liked a page your not the owner?

@netusipt
Copy link

netusipt commented Aug 23, 2021

I highly recommend this browser extension - Firefox, Chrome, Edge.
It saves me so much time and it's free.

@Shurshik
Copy link

I highly recommend this browser extension - Firefox, Chrome, Edge.
It saves me so much time and it's free.

I can see the malware there. THis extension was just uploaded. DO NOT USE IT. Just search on google and use famous extensions released years ago with thousands on downloads, you will be more secure.

@netusipt
Copy link

It's not malware. Look at the reviews on Firefox. I developed this extension. I build it primarily for my own use. Recently I decided to share it with others. It's just another option. Download whatever extension you want. Just saying it's not malware, it works and it's free. Actually, all extensions are reviewed before they are published. Here's my website - https://likeinviter.herokuapp.com/

@Shurshik
Copy link

It's not malware. Look at the reviews on Firefox. I developed this extension. I build it primarily for my own use. Recently I decided to share it with others. It's just another option. Download whatever extension you want. Just saying it's not malware, it works and it's free. Actually, all extensions are reviewed before they are published. Here's my website - https://likeinviter.herokuapp.com/

Reviews? There is 1 good review, lol! I don't see any sense to create own extension when there are many of them, for years. Also no sense to give the extension access to your own domain, it's not secure. Google checks extension but not enough. For me this is big no.

@piranhap
Copy link

2024 and wondering what everyone else is using ;-;

@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