The old way of doing this doesn’t seem to work anymore. So here is a new way that you can use. This was shared to me by Nasif and you can check out his post on his blog if you want.
This is really frustrating for not being able to suggest or invite a facebook group, fan page or application profile page to all your facebook contacts in one click. How do you feel to select 500 friends with 500 mouse click?
The javascript code from John P’s blog http://onemansblog.com/2009/08/30/how-to-invite-all-facebook-friends-to-a-group-event-or-page/ worked well when I used it a week back back but tomorrow I noticed that the trick is resting in peace !
I was very much frustrated when I saw the code not working anymore. I decided to resurrect the trick back to life and I am successful in doing that. But don’t know when this trick will get murder again by evil facebook ! :s
There are two ways you can do it.
1. By javascript code and a little bit of stupidity
Click “Suggest to friends” on application profile page or “Invite to friends” on group, fan page or events page.

Right click on any friend and click “open in new tab”
You will land on a page which will only show suggestion window
At this point, paste the following code on to the address bar where the suggestion window is displaying:
javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}
Or
javascript:fs.select_all();

And there’s an even easier way to select all friends.
2. By using chrome extension known as Facebook Invite All
A million thanks to dawagner who made this wonderful extension. After you have installed this extension you will notice a a new button “Toggle all” on the suggestion or invitation window.
If this post helped you out in anyway make sure to tweet it, share it and click the “like” button below and share the wealth.














September 8, 2010 at 9:00 pm
Thanks Brandon!
I had searched on this before and the java script never worked!
I finally got it with your information!
Thank you!
~Andie Petoskey
September 9, 2010 at 3:44 am
Thank you for this great way of helping our friends get connected in more meaningful ways.
September 13, 2010 at 1:18 am
bloody legend mate!
thank you!
braaaaaaaaaap
brad
September 19, 2010 at 10:20 am
Brandon,
This is just AWESOME!
Thank you for the post,
Gabriel Johansson
October 2, 2010 at 7:46 am
On a Mac, in Firefox, a combination of the two techniques is the only thing that worked for me. Rather than opening a new tab (which just sent me to a generic fb homepage), after I clicked the Invite button, I just pasted
javascript:fs.select_all();
into the top of the browser and it worked. If all else fails, try that.
Thanks for this!
October 4, 2010 at 2:05 pm
what Carl said to do worked for me. I am also on a MAC in firefox
January 9, 2011 at 9:33 pm
ditto. the short one carl just said worked quickly. vaio chrome
February 1, 2011 at 8:25 pm
Thanks for sharing this!
I did copy it and saved it for future use!
Keep rockin’ the net!!!
March 2, 2011 at 9:22 am
This rocks! THANK YOU for the info – major time saver!
March 5, 2011 at 5:27 am
yo brandon –
firefox/3.6.13, open in new tab = group/event page
new problem? *wah*
March 14, 2011 at 2:08 pm
None of the methods work any more, since FB has now changed their scripting AGAIN, as of today. And I don’t think the Facebook Invite All extension is getting an update for it, either.