You are here

function fb_channel_page in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb.module \fb_channel_page()

Menu callback for custom channel.

See also

http://developers.facebook.com/docs/reference/javascript/FB.init

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

File

./fb.module, line 2029
This is the core required module of Drupal for Facebook.

Code

function fb_channel_page() {

  // Headers instruct browser to cache this page.
  drupal_add_http_header("Cache-Control", "public");
  drupal_add_http_header("Expires", "Sun, 17-Jan-2038 19:14:07 GMT");
  $date = format_date(time());
  $output = "<!-- modules/fb fb_channel_page() {$date} -->\n";
  $url = fb_js_settings('js_sdk_url');
  $output .= "<script src=\"{$url}\"></script>\n";
  print $output;
  exit;
}