Skip to content

Instantly share code, notes, and snippets.

@remon
Forked from guiliredu/facebook-page-invite.js
Created October 6, 2017 19:40
Show Gist options
  • Save remon/73eade3bb010f289d599f919aa4f8fe2 to your computer and use it in GitHub Desktop.
Save remon/73eade3bb010f289d599f919aa4f8fe2 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();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment