You are here

function fb_connect_js_cb in Drupal for Facebook 6.2

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_connect_js_cb'
fb_connect_menu in ./fb_connect.module
Implementation of hook_menu().

File

./fb_connect.module, line 122
Support for Facebook Connect features

Code

function fb_connect_js_cb() {
  $extra = fb_invoke(FB_OP_CONNECT_JS_INIT, NULL, array());
  $extra_js = implode("\n", $extra);
  print $extra_js;
  exit;
}