io ho usato questo codice che mi funziona
Codice PHP:
require_once './fb_engine/facebook.php';
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
));
$uid = ""; //id del user dove vuoi pubblicare
$attachment = array
(
'access_token'=>$facebook->getAccessToken(),
'message' => 'I had a question: should I write a PHP facebook app that actually worked?',
'name' => 'I Asked Bert',
'caption' => 'Bert replied:',
'link' => 'http://apps.facebook.com/askbert/',
'description' => 'NO',
'picture' => 'http://www.facebookanswers.co.uk/img/misc/question.jpg'
);
$result = $facebook->api($uid.'/feed/','post',$attachment);
non è il massimo