This Javascript Invite Code Doesn't Work For Facebook..Help?

6 replies
Hey Coder Gods...

I'm absolutely furious right now b/c I need a really efficient way to suggest a page to friends on facebook.

I was wondering if anyone knows why the following Javascript code won't work to highlight all my friends on Facebook in the "suggest to friends" area.

javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var  fid in elms){if(typeof elms[fid] === 'object'){[fid]); } }
I'm at a loss...I've seen this thing suggested in multiple spots and tried to use it in Firefox and Internet Explorer.

IE returns an error but firefox doesn't say anything.

Thanks for any help.

#code #facebookhelp #invite #javascript #work

Trending Topics