Skip to content

Javascript for selecting all your friends while suggesting a page on facebook

March 12, 2010

When you suggest a fan page to your facebook friends,you have to select all your friends one by one,if you are having thousand of facebook frnds,selecting every one one by one is very if you want to suggest a page to all your friends,just click on wall of the fan page,then click on suggest to friends button,after that click on browser address bar and paste this javascript into your browser address bar and hit enter and you are done

javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){[fid]);}}    

remember this javascript  works in Mozilla firefox,google chrome and in safari only. 

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: