Home Facebook Invite all friends to Facebook Event and like page in One Click

Invite all friends to Facebook Event and like page in One Click


Hello Friends, we have come up with yet another article where we will share a simple code to invite all friends to Facebook event and like the page. Facebook as we all know has become one of the most popular sources to generate traffic to your websites. And the most used to promote business, start-ups and events as well. But to gain traffic we need users to view what we share on or page. And its pretty obvious that we need a lot of people to like our page. Though there is Page Boosting options available for every individual to get Facebook likes. But not everyone can spend money to get likes. At least we can ask our friends to like our Facebook page.

Note – Facebook has changed it’s interface, this is the updated article where you will get complete steps to invite your friends to like Facebook page in a single click

Now the task starts! Start inviting people one by one to like your facebook page.

” OMG! I am done now” this is what comes into mind after inviting couple of 100 friends. But what would a person do who’s having 1500 Facebook friends?

Also Read – Important Steps before deleting your Facebook Account

I am very sure that you all would be pretty much interested in knowing that how we can invite all friends to Facebook event and like page.

Ok! lets just Scroll down and see how a small code can help us avoid all the irritation that is created when we invite all friends to Facebook event and like the page.

Note – This Code Works only in Google Chrome


Steps to Invite All Friends to Facebook Event and Like the Page in one click

Step 1  – Open the Facebook Page where you want to invite your Facebook friends.

Step 2 – Click on Activity Tab

Step 3 – On the left you’ll see something like this

Invite Facebook Friends in one click (Updated)

Step 4 – Click on Invite Friends

invite all friends to facebook

Step  5 – When you Click on See All, A pop Window Appears on the screen that looks like the bellow image.

invite all friends to facebook event

Step 6 – Keep Scrolling Down as infinite scrolling will keep updating more friends till last friend is loaded in the popup.

Do you want to earn money online? Check out the link here for 200 ways about making money online.


Step 7 – Once your list is loaded Press F12 on your keyboard, A window will rise up

invite all friends to facebook page and event

Step 8 – Copy the below code into the console window as shown in the above image

Code to invite all friends to facebook Page

var inputs = document.getElementsByClassName('uiButton _1sm'); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }

Code to invite all friends to facebook Event

javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()}

Step 9 – Once you Copy the Code, Just Hit Enter and See the magic

If you have any Question in your mind, you may discuss in the comments section below

Previous articleFacebook Update – Introduces Feature to Help find Nearby Friends
Next articleHTML to WordPress Conversion – HTML vs WordPress
He is a 27 year old guy who is instilled with the art of Blogging, He loves to Blog day in and day out,He is a Network Engineer and a always keen at learning . Connect with him on Facebook, Follow on Twitter and Google+


  1. For people working in SEO domain, it is quite common to handle a lot of business pages. And when it comes to inviting friends to like pages, Inviting friends one by one is time consuming task.

    The trick you provided in the post, by adding a simple code in the developer’s mode of Chrome is just awesome. It worked for me, and I was able to send invites to 132 friends in a single click.

    Thanks for sharing such a nice tip on Kingged.com.

    By the way, I am thinking of getting some similar trick with Mozilla too. I would share it with you guys once I am done.

  2. On Facebook, I’ve got a handful of pages related to niche blogs that I’m maintaining. Some of them are not maintained by me that regularly. But still, I do make sure to invite my friends to like those pages.

    Manually inviting them is a real pain! I admit that fact. For a long time, I’ve been doing exactly that, unfortunately. Because, back then, I was not aware of this little trick.

    The method described is simple. All one needs to do is add that code in the console and enter it.

    Thanks for sharing this handy little tip. I found the link to it on Kingged.


  3. Copy as HTML? When I copy the code to the console it enters line after line of code endlessly and it doesn’t stop. It is not the standard copy and paste procedure. Help please.

  4. I really want to do this, but I’m on a Mac and if I push F12, it just turns up the volume on my computer. Is there a different button I should push if I’m on a Mac? Thanks!

    • sure, you can do it, it works with Chrome. You can find inspect element after you right click in the browser, else you can easily follow the instructions further, still if you find issue inviting all Facebook friends in a single click, please let me know

  5. Is something changed recently .. I am getting “undefined” ??

    var inputs = document.getElementsByClassName(‘uiButton _1sm’); for(var i=0; i<inputs.length;i++) { inputs[i].click(); }


    • There were few changes in the interface of pages, I have updated this article accordingly. The code to invite all friends still works perfectly. Please define, where are you getting this exactly…

      and even after the script loads, it says undefined, Please check if it had sent the invitation or not.

      • I am trying to invite all my friends to like a new page .. It is not opening a new dialogue box but on the same window (invite friends) it is scrolling for all friends..
        I think something is wrong in line
        var inputs = document.getElementsByClassName(‘uiButton _1sm’);
        javascript:var inputs = document.getElementsByClassName(‘uiButton _1sm’);

        I tried searching for element “_1sm” it wasnt present..

Share your Experience