Javascript Code to Invite All Facebook Friends to Like FanPage

seobrain

Newbie
Joined
Nov 11, 2011
Messages
17
Reaction score
7
I just got through searching for ways to invite all my friend (well over 2000) to like my new fan page.

I ran into a few codes that don't work anymore but I just tried this and it works as of 11/12/2011 using Firefox 7.x

With the latest of facebook updates, the old code trick to send invitation to all friends does not work anymore. Moreover, you?ve installed the last Firefox, and you can?t use anymore the url address bar to input javascript commands.

It was the same for me. But I?ve found this path to invite all your friends to your new fan page, follow this steps.

1) Use Firefox (I used 7.x)

2) Open your facebook fan page.

3) Click on ?Invite friends?.

4) The grid of friends is opened.

5) Select ?Search all friends? and scroll down, so all your friends are loaded.

6) Press Ctrl+Shift+K (Command + Shift + K on Macs)

7) A firefox panel is opened on the top of the page, here you can put the javascript code (put the two lines in a single line):

Code:
elms=document.getElementById('pop_content').getElementsByTagName('li');
for(var fid in elms){if(typeof elms[fid] === 'object'){elms[fid].click();}}

This code will select each friend and perform a click on it.

8) Press ?enter?.

9) Wait the selecetion (it could take some minute).

10) Press ?submit?

This saved me tons of time because I'm not clicking on 2000+ friends individually..

Enjoy
 
I this works only for few of friends... not all of them :(


do you have idea why?

Thanks for share
 
yea there were codes that invited all the friends back in early 2010..obviously, these are all patched and Facebook puts strict limits on invites. I think it's 50 friends capped...
 
someone else posted a code just like this the other day and it worked fine for me. a similar code, if not the same code. it selected all friends for me fine. but is it true that even if all friends are selected that only 40 - 50 of them get the invite?
 
Back
Top