我正在为facebook构建一个应用程序。我需要发布一些链接,标准代码工作正常:
$ret_obj = $facebook->api('/me/feed', 'POST',
array(
'link' => 'Mylink',
'message' => 'Posting with the PHP SDK!',
但我也需要附上照片。如果照片在我发布的链接上,它会起作用,但我不希望照片出现在那个页面上。
有办法吗?
只需在调用时添加一个参数picture
array(
'link' => 'Mylink',
'message' => 'Posting with the PHP SDK!',
'picture' => '{image-link}'