如何使用 Graph API 隐藏 facebook wall 中的图像链接?
我已通过我的网站在 Facebook 墙上发布了一条消息,其中还包含一张图片。我现在想要的是隐藏那里显示的图片的链接,但仍然使图片作为链接工作。 我正在使用:
$facebook->api('/me/feed', 'post', array('message'=> $message, 'description'=> $description, 'picture'=> $image, 'cb' => ''));
有人知道该怎么做吗?
I have posted a message to my facebook wall through my web site, that contains also a picture. What I want now is hide the link of the picture that is shown there but still make the picture work as a link.
I am using:
$facebook->api('/me/feed', 'post', array('message'=> $message, 'description'=> $description, 'picture'=> $image, 'cb' => ''));
Does anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您需要的是使用旧的 REST API 调用
stream.publish
并传递附件。它有更多的选项,您可以为图像本身和帖子中提到的链接提供单独的链接。请参阅:
stream.publish
,附件格式,如何从新 API 调用旧 REST API 方法Seems like what you need is to use old REST API call
stream.publish
and pass an attachment. It has far more options and you can have separated links for image itslef and the one mentioned in post.See:
stream.publish
, attachment format, how to call old REST API methods from new API