I am using this in my .php file and I want to pass the user's photo variable into a .swf file.
<?php
require_once 'src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'xxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxx',
'cookie' => true,
));
$me = null;
if ($session) {
try {
$uid = $facebook->getUser();
$me = $facebook->api('/me');
} catch (FacebookApiException $e) {
error_log($e);
}
}
?>
<fb:swf swfsrc='http://www.aaaa.com/facebook_application/Main.swf?photo=<?= uid ?>' allowscriptaccess='always' flashvars=''
swfbgcolor='#cccccc' wmode='transparent' flashvars='' width='500' height='400'/>
Can somebody tell me what I am doing wrong?