How to invite people who like your post to like you Page EN MASSE!

Javascript-facebook-invite-likes-fan-page I’ve posted before about a little trick whereby you can manually invite people who have liked your Page’s Facebook posts to then like the Page.

This manual method is explained in the video at the bottom of the article.

But for a post with hundreds of likes that is an awful lot of scrolling and clicking. That’s a nice problem to have because the post has clearly gone viral but it does take ages to action.

Instead there is a little javascript hack you can use in Chrome which will do this for all the Likes on the post in just a couple of clicks.

Don’t worry – you don’t need to have ANY development skills to do this and I’ll walk you through it all step-by-step.

Step 1 – Click on the Likes for a popular post

How to invite a facebook post like to become a fan

You’ll see a hypertext link with either the names of a couple of people or a like count. Click on that and you should then see a pop-up.

Step 2 – Scroll through the pop-up

Invite someone who likes a facebook post to become a fan

You should see some people to Invite (as well as those who have already Liked the Page). 

This is where you could manually click to invite them all one by one or alternately, when you have lots of inviting to do progress to Step 3.

Keep that pop-up open and go to the next Step.

Step 3 – Paste some code into the url

javascript code for converting facebook likes to fans

At the top of your browser you’ll see the usual name

Over the top of that past the following code

javascript:var inputs = document.querySelectorAll(‘a._42ft._4jy3._4jy3._517h._51sy’); for(var i=1; i<inputs.length;i++) { inputs[i].click();}

Click return

Step 4 – Check it worked!

Invitation sent to become a Facebook Page fan


‘Invite’ should now say ‘Invited’.

If the person accepts the invitation you will see a notification in your Page notifications panel.

Don’t go overboard!

There is a limit on how many people you can invite in a single day. My understanding is that this is 490. Don’t try more than that or you will get locked out.

Not working for you?

The function is not available for very large Pages so if you don’t see the option to “Invite” your Page is either too large or you are temporarily locked out of the feature.

Remember that you need to be in Chrome (Firefox may also work – try it!)

Video showing how the manual (non javascript) method works

Marie Page

About Marie Page

Marie Page is one of the UK’s leading Facebook marketing experts. She is a founding partner of digital marketing consultancy The Digiterati and the Digiterati Academy e-learning portal for marketers and entrepreneurs. Her book (and companion online course) 'Winning at Facebook Marketing with Zero Budget' is an Amazon bestseller. Marie's work on the Facebook News Feed algorithm was featured in The Huffington Post. A recognised thought leader on social media, Marie is often approached by journalists for comment in articles such as this Telegraph article. She was also interviewed for ITV's Tonight show on Facebook privacy issues in relation to advertising. Marie is a regular guest on digital marketing blogs and podcasts including Social Media Examiner and Smart Insights. In 2018 she is speaking at Brighton SEO, Europe's biggest search and marketing conference. Marie is also author of two Smart Insights books: 'Smarter Guide to Facebook Marketing', now in its fourth edition, and 'Facebook Ads Guide', both edited by Dr Dave Chaffey. As well as her work with Digiterati, Marie is also a part-time yoga teacher.