views:

229

answers:

1

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=&lt;?= uid ?>'           allowscriptaccess='always' flashvars='' 
swfbgcolor='#cccccc' wmode='transparent'  flashvars=''    width='500' height='400'/>

Can somebody tell me what I am doing wrong?

A: 

Use the PHP to include the photo URI into flashvars.

Delan Azabani
Can you be more specific, please? I m not so advanced with PHP
Dimitree