Invite all users to like your Facebook page with this simple code!

Facebook invite to like page script.

Not sure why, beside the obvious reason, Facebook wants you to spend as much time as you can on their platform, even to do some boring clicking but when you are managing a Facebook page account and wants to invite users who liked your post to like your page, the process is not so satisfying and although you know you need to do it, it always seems like there should be a easier way.

Of course there is, here’s the hack.

Steps to follow:

  1. Go to the page you are administrator of
  2. Find a post with a lot of likes
  3. Click on the likes number and the popup will appear
  4. Open the modal window with the list of the users you can invite
  5. Open console (press F12 in most browsers), 
  6. Go to the Console tab and
  7. Paste the following code
  8. Press enter and voila!

Don’t forget to subscribe so you can get more of this hacks.

// Updated: 2019-08-02
// This script is made for demonstrative purposes only. 
// Use at your own risk. 
// Respect the Facebook's policy and terms of use.

var inputs = document.querySelectorAll('a._42ft[rel=async-post]');
for(var i=1; i<inputs.length;i++) {
inputs[i].click();
}

Note: Try not to use this code so much, because you can be banned and your account can be terminated.

Did you like this? Share it!

4 comments on “Invite all users to like your Facebook page with this simple code!

the script does not work sir,

Hi, you just need to wait a couple of seconds. Let me know if it’s ok.

Wheni placedthe tekst, how long should i wait?

Hi, I updated the script so it should work now. 🙂 Let me know if all is good.

Leave Comment