Categories

open all | close all

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.

In: Website Questions Asked By: [1056 Orange Star Level]
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..

GD Star Rating
loading...
Answers Answered By: digitali [2 Grey Star Level]
Answer #2


Hi Amit,

Open the FAN page, which you would like to suggest to all friends and click on “suggest to friends” a box will pop-up right click on any one friend and click on “open link in new tab”. The same box will appear in another tab, Paste this “javascript:fs.select_all();”

GD Star Rating
loading...
Answers Answered By: account77 [62 Blue Star Level]
Answer #3


Actually these two are different options and iam referring to the box which is normally used to invite friends by selecting them one by one. The code given by the Facebook Developers team returns a error, hence am looking for a alternative code.

Like this – http://img225.imageshack.us/img225/2647/fanpagebox.png

GD Star Rating
loading...
Answers Answered By: amitbhawani [1056 Orange Star Level]
Answer #4


Amit, i gave the instructions for the same, for tut with screen shots visit this http://bit.ly/agsa27, i tried this a hour ago.

GD Star Rating
loading...
Answers Answered By: account77 [62 Blue Star Level]
Answer #5


You still didn’t get it. I don’t want the java script based options to be run on the toolbar. The idea is a working invite box , didn’t want to reveal it but you can check out the plan here – http://www.facebook.com/AmitBhawaniBlog?v=app_4949752878 Its for a upcoming contest but the invite box is not working. I don’t think everyone would be able to perform the javascript based trick but everyone can easily invite their friends using that box.

GD Star Rating
loading...
Answers Answered By: Amit Bhawani [1056 Orange Star Level]
Answer #6


Oops sorry! i don’t have any idea about this…

GD Star Rating
loading...
Answers Answered By: account77 [62 Blue Star Level]
Answer #7


Go to your homepage click invite friends and mark people whom you want

GD Star Rating
loading...
Answers Answered By: ashkdm [ Grey Star Level]

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!

Grey Sta Levelr [1 - 25 Grey Star Level]
Green Star Level [26 - 50 Green Star Level]
Blue Star Level [51 - 500 Blue Star Level]
Orange Star Level [501 - 5000 Orange Star Level]
Red Star Level [5001 - 25000 Red Star Level]
Black Star Level [25001+ Black Star Level]