Friday, March 12, 2010

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

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 difficult.so 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'){fs.click(elms[fid]);}}    


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

Labels: ,