You cannot use the Facebook JS file in Google Desktop gadgets because
it requires an HTML document to work with. There is currently no way
to embed an HTML document into Google Desktop gadgets. If you want to
work with Facebook you must use the Facebook REST API (http://
wiki.developers.facebook.com/index.php/API) with the XMLHttpRequest
object. You might be able to create a custom JS file based on the
provided JS file which will work with Google Desktop gadgets. There
are also some Facebook gadgets already available. Maybe you can
contact the authors to gain some knowledge about interacting with
Facebook.
Best regards,
Benjamin
On Feb 12, 1:34 am, pedgett <pedg...@gmail.com> wrote:
Hey guys. I've been messing around with a project and I'm trying to
get the Facebook javascript client library (http://
wiki.developers.facebook.com/index.php/JavaScript_Client_Library) to
work in the widget. The problem I'm running into is including the
library in the widget. What I've tried is including it in the
gadget's main.xml the full address (http://static.ak.facebook.com/js/
api_lib/FacebookApi.debug.js) as well as saving it and including it
locally. The example usage provided by facebook involves including it
all within an html document which works fine and dandy, except I don't
know how to incorporate it (if I even can) into a gadget.
Thanks