meranda2100 Posted March 31, 2010 Share Posted March 31, 2010 I want to insert this code into my Facebook page and have it work, but I am not as familar with JavaScript as CSS and HTML. I tried puting it in a post with a link in HTML, but no dice. Any one have any suggestions?java script:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}} thanks,Meranda2100 Link to comment Share on other sites More sharing options...
justsomeguy Posted March 31, 2010 Share Posted March 31, 2010 Does Facebook even allow you to add Javascript to your posts? Link to comment Share on other sites More sharing options...
jeffman Posted March 31, 2010 Share Posted March 31, 2010 Try a simple test. Post a link that looks like this:<a href="javascript:alert('hi')">Click me</a>If that won't work, no javascript will work. Link to comment Share on other sites More sharing options...
skaterdav85 Posted March 31, 2010 Share Posted March 31, 2010 ya JS wont work on facebook. However I have seen some applications that let people write JS in the URL and then it checks all boxes in one of those modal windows where you can select your friends to invite to something. Link to comment Share on other sites More sharing options...
Synook Posted April 1, 2010 Share Posted April 1, 2010 That's a bookmarklet. If you want to provide some sort of interactive functionality that links into Facebook, have a look at the Facebook API. Link to comment Share on other sites More sharing options...
meranda2100 Posted April 3, 2010 Author Share Posted April 3, 2010 That's a bookmarklet. If you want to provide some sort of interactive functionality that links into Facebook, have a look at the Facebook API.Thanks for all the help, but what is Facebook API and how do I learn the code? Thanks, Meranda2100 Link to comment Share on other sites More sharing options...
Synook Posted April 3, 2010 Share Posted April 3, 2010 The Facebook API (well, a portion of it) allows you to develop web applications that will run inside Facebook.http://developers.facebook.com/get_started.php Link to comment Share on other sites More sharing options...
meranda2100 Posted April 6, 2010 Author Share Posted April 6, 2010 The Facebook API (well, a portion of it) allows you to develop web applications that will run inside Facebook.http://developers.facebook.com/get_started.php Thanks, I will start learning!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.