Find a Question:
Need Code for Facebook Friends Invitation Box on Fan Page?
Dec
8
2010
I tried out the Developer Pages but it seems to have some bugs. Can someone share with me a working FaceBook Fan Pages Friends Invitation Box Code which can be embedded on the welcome page of a Application or Fan Page. Also suggest the one with option to invite unlimited friends.
Answer this Question
You must be Logged In to post an Answer.
Not a member yet? Sign Up Now »
Star Points Scale
Earn points for Asking and Answering Questions!
[1 - 25
[26 - 50
[51 - 500
[501 - 5000
[5001 - 25000
[25001+
Answer #1
1. Go to your Event, Group or page and click “Invite People”.
2. Once the page has loaded you should see all of your friends, but they are not selected.
3. At this point, copy and paste the javascript code below into your Web browser’s address bar, then hit “Enter”.
4. If all goes well, it selects all of your friends!
javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}
If the first method doesn’t work for you give this a try:
Right click the “friend box” and open it in a new tab…
Then paste this ==> javascript: fs.select_all()
Finally, there is now a Chrome extension called Facebook Invite All, so if you are using the Chrome browser you can pick that up and it will add the ability to invite all your friends – and there is a GreaseMonkey script for Firefox to Invite All Friends if you want to try that as well..
loading...