function fb_connect_receiver in Drupal for Facebook 5.2
Same name and namespace in other branches
- 6.2 fb_connect.module \fb_connect_receiver()
Without a receiver file, cross-domain javascript will not work.
In their infinite wisdom, facebook has decreed that the URL for this static page be in the same place as the app's callback URL. So we have to make a Drupal callback for what would otherwise be a simple file.
1 string reference to 'fb_connect_receiver'
- fb_connect_menu in ./
fb_connect.module - @file Support for Facebook Connect features
File
- ./
fb_connect.module, line 33 - Support for Facebook Connect features
Code
function fb_connect_receiver() {
$output = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<body>
<!-- http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel -->
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.debug.js" type="text/javascript"></script>
</body>
</html>
';
print $output;
exit;
die;
}