[英]Facebook development - post link with photo
I'm building an app for facebook.我正在为 facebook 构建一个应用程序。 I need to post some link, standard code works correctly:
我需要发布一些链接,标准代码可以正常工作:
$ret_obj = $facebook->api('/me/feed', 'POST',
array(
'link' => 'Mylink',
'message' => 'Posting with the PHP SDK!',
But I need to attach the photo also.但我还需要附上照片。 It works if photo is on the link I post, but I don't want that photo to appear on that page.
如果照片在我发布的链接上,它会起作用,但我不希望该照片出现在该页面上。
Is there any way?有什么办法吗?
Simply add a parameter, picture
to while making the call-只需在调用时添加参数,
picture
即可 -
array(
'link' => 'Mylink',
'message' => 'Posting with the PHP SDK!',
'picture' => '{image-link}'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.