Я использую следующий код:
Код: Выделить всё
$path_to_image = "http://projects.kleelof.com/boot_designer/image_interchange.php?c=" . $file_id;
$attachment = array('message' => 'this is my message',
'name' => 'The name of your company',
'caption' => "Caption of the Post",
'link' => $path_to_image,
'picture' => $path_to_image,
'description' => 'this is a description',
'access_token' => $facebook->getAccessToken()
);
//echo($path_to_image);
$result = $facebook->api('/me/feed/','post',$attachment);
Вы можете увидеть весь процесс и опубликовать его, попробовав приложение по адресу: http://projects.kleelof.com/boot_designer. Затем выберите один из двух вариантов. ссылки.
будь осторожен,
ли
Подробнее здесь: https://stackoverflow.com/questions/846 ... t-no-image