function fb_js_cb in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb.module \fb_js_cb()
Ajax javascript callback.
For sites which use ajax, various events may create javascript which is normally embedded in a page. For example, posting to a user's wall. When ajax is used instead of a page reload, this callback will provide any javascript which should be run.
File
- ./
fb.module, line 1945 - This is the core required module of Drupal for Facebook.
Code
function fb_js_cb() {
$js_array = fb_invoke(FB_OP_JS, array(
'fb' => $GLOBALS['_fb'],
'fb_app' => $GLOBALS['_fb_app'],
), array());
$extra_js = implode("\n", $extra);
print $extra_js;
exit;
}