You are here

function fb_js_cb in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 7.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.

1 string reference to 'fb_js_cb'
fb_menu in ./fb.module
Implements hook_menu().

File

./fb.module, line 1637
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;
}