Ejemplo n.º 1
0
function render_fbconnect_init_js()
{
    $html = sprintf('<script src="%s/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
     <script type="text/javascript">
       FB.init("%s", "xd_receiver.php");
     </script>
     <script src="fbconnect.js" type="text/javascript"></script>', get_static_root(), get_api_key());
    $already_logged_in = facebook_client()->get_loggedin_user() ? "true" : "false";
    onloadRegister(sprintf("facebook_onload(%s);", $already_logged_in));
    return $html;
}
Ejemplo n.º 2
0
<?php

define(MAIN_PATH, realpath('.'));
include_once MAIN_PATH . '/init.php';
// cache the xd_receiver
header('Cache-Control: max-age=225065900');
header('Expires:');
header('Pragma:');
?>

<!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" >
<head>
    <title>cross domain receiver page</title>
</head>
<body>

<!--
This is a cross domain (XD) receiver page. It needs to be placed on your domain so that the Javascript
  library can communicate within the iframe permission model. Put it here:

  http://www.example.com/xd_receiver.php
-->

<?php 
echo '<script src="' . get_static_root() . '/js/api_lib/v0.4/XdCommReceiver.debug.js" type="text/javascript"></script>';
?>
</body>
</html>