I\'m working on a project that (hopefully) involves taking advantage of some of the javascript that\'s already built into Facebook. But right away I\'ve got a roadblock in t
As, I have inspected Facebook JavaScript SDK. I believe that it uses Dependency Injection Mechanism. Here are two URLs.
Production: http://connect.facebook.net/en_US/all.js (obfuscated)
Development: http://connect.facebook.net/en_US/all/debug.js (deobfuscated)
If you check debug.js, you can see require, __d, __t and many more. __d is more like define function from RequireJS (http://requirejs.org/docs/api.html#define)
__d = function(/*string*/ id, /*array*/ deps, factory,
      /*number?*/ _special) {/*TC*/__t([id,'string','id'],[deps,'array','deps'],[_special,'number?','_special']);/*/TC*/