Jump to content
meranda2100

Facebook Question

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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!! :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...