No matter, how large your company is; one of the working awesome best ways to promote a business online is by making use of Social Media. No doubt, best one among all social media sites is Facebook and next comes LinkedIn, Twitter, Google+. Facebook fan page is the most extraordinary thing developed by Facebook. Every company has their own official Facebook page and even Geek Dashboard has Facebook Page. The first immediate thing you need to do after creating a Facebook page for your business is to invite all friends to like Facebook fan page. Unfortunately, this will become really a headache is you have a large list of friends on your account. Moreover, Facebook has no official “select all” button to select all friends on the list. There is no other choice, you have to manually invite everyone.

This is really a hard task and takes hours to complete. Luckily today we had a working JavaScript code to invite all friends to like Facebook fan page in just one click. This trick works on all Facebook pages, no matter whether you’re admin of that page or not. You can even invite your friends to like a page even if you’re not owning that page.

Bonus: The Future Look of Facebook [Concept of Redesign]

Invite all friends to like Facebook Fan page in one click

Currently, this trick is working on almost all best web browsers like Google Chrome, Mozilla Firebox, Internet Explorer, Safari irrespective of operating systems. All you have to do is just copying and pasting. It is just a few steps task which can get completed in less than 30 seconds. Okay, let’s invite all friends to like Facebook fan page easily in just few simple mouse clicks.

Before proceeding, make sure you are using the latest version of web browsers on your computer. Outdated browsers may not give the results as expected. You can download the latest version of browsers below Google Chrome

Mozilla Firefox

Internet Explorer

Safari

Update #1 [Oct 2015]: Recently Facebook changed it’s class names and we worked hard and updated the code and it is working like a charm without any issues. Please wait until you see “undefined” after running the script in the console. It takes around one minute to mark all the available friend list.

Update #2 [May 14, 2017]: We have tested this method again and it seems working well as expected. But don’t send more than 100 invites at the same time. Use this trick every day to invite 100 new friends daily.

Code to Invite all friends to like Facebook Fan page in one click

Method 1: To invite all Facebook friends using .js code

Below is the working JavaScript code which will help you to invite all friends to like Facebook page in one click. Copy below provided code and proceed to next step

For Facebook Pages: – Latest Working Code for 2017

javascript:var geekdashboard = document.getElementsByClassName('uiButton _1sm'); for(var invite=0; invite<geekdashboard.length;invite++) { geekdashboard[invite].click(); }

For Facebook Events: – Latest Working Code for 2017

javascript:var geekdashboard = document.getElementsByClassName('_1pt_ _1pu0'); for(var invite=0; invite<geekdashboard.length;invite++) { geekdashboard[invite].click(); }

Once copied, open the Facebook page from which you want to send invites and click “Invite Friends”

Now scroll down till the end of the list and depending upon your browser type; follow steps mentioned below.

Google Chrome Users

Right-click anywhere on the page and click “Inspect Element” or simply press F12 and Go to “Console” tab. Now past the code at the end just next to the > and hit “Enter”.

That’s it, leave it aside for some time and it will automatically invite all friends

Also Read: How to solve Google Chrome has stopped working error

Mozilla Firefox users

Press Ctrl+Shit+k (Windows users) Cmd+Option+K (MAC users) on your keyboard Now paste the copied code at the end just after the >> and hit “Enter”

It will now automatically invite all friends to like that page automatically

Internet Explorer Users

Press F12 Click “Console” tab Paste the copied code and press “Enter”

Safari Users

Go to “Preferences” in menu, then click “Advance” and check “Show desktop menu in desktop” Now click “Develop” and then “Show error console” and just press “Command+Option+C” Paste the copied code at the end after > and hit “Enter”

It takes some time to send all invites, time depends on the total number of friends in your account and partially on your internet connectivity.

Method 2: Invite Facebook friends using browser extension/Addon

If above script didn’t work for you, make use of browser extensions to invite your friends to like the page. Download the extension below depending on your browser.

After installing the extension or addon, you need to click invite friends button on your Facebook page as shown in the below image

You’ll get a popup box showing all your friends, select “All friends” from the dropdown and click the tick icon on your browser extensions.

Wait for some time till it sends all invites automatically to all your friends.

Hope this guide about how to invite all friends to like Facebook fan page helps you to grow your business and let us know if you face any problems during this process.