3 if (!defined('STATUSNET') && !defined('LACONICA')) {
8 * Generates the cross domain communication channel file
9 * (xd_receiver.html). By generating it we can add some caching
12 * See: http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel
14 class FBC_XDReceiverAction extends Action
18 * Do we need to write to the database?
20 * @return boolean true
31 * @param array $args Arguments from $_REQUEST
36 function handle($args)
38 // Parent handling, including cache check
39 parent::handle($args);
45 // cache the xd_receiver
46 header('Cache-Control: max-age=225065900');
50 $this->startXML('html');
52 $language = $this->getLanguage();
54 $this->elementStart('html', array('xmlns' => 'http://www.w3.org/1999/xhtml',
55 'xml:lang' => $language,
56 'lang' => $language));
57 $this->elementStart('head');
58 $this->element('title', null, 'cross domain receiver page');
59 $this->script('http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.debug.js');
60 $this->elementEnd('head');
61 $this->elementStart('body');
62 $this->elementEnd('body');
64 $this->elementEnd('html');