如何在没有缩略图的情况下发布链接到Facebook? [英] How do I post a Link to Facebook without a thumbnail?

查看:80
本文介绍了如何在没有缩略图的情况下发布链接到Facebook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Graph API 向Facebook发布链接,但我希望能够避免缩略图。 Facebook的网页界面在发布图片时有一个无缩略图复选框;我想从我自己的应用程序中模拟这个。



我尝试为源指定一个空字符串图片参数,但是Facebook仍然会为指定的链接提取缩略图。



例如,我已经尝试过,但缩略图仍然显示:

  curl -F'access_token = ...'\ 
-F'message =链接空的源和空图片'\
-F'link = http:// stackoverflow.com'\
-F'picture ='\
-F'source ='\
https://graph.facebook.com/me/feed
更新:建议这是Facebook的一个错误,他们建议发布一个1x1像素的清晰图像。我更喜欢一个比这更好的解决方法。

解决方案

Facebook已经修复了这个 bug 。将图片设置为空字符串或设置图片= NULL,两者都应该正常工作。


I'd like to post a Link to Facebook using the Graph API, but I'd like to be able to avoid a thumbnail image. Facebook's web interface has a no-thumbail checkbox while posting an image; I'd like to simulate this from my own application.

I've tried specifying an empty string for both the source and picture arguments, but Facebook still fetches a thumbnail image for the specified link regardless.

For example, I've tried this, but a thumbnail image still shows up:

curl -F 'access_token=...' \
     -F 'message=Link with empty source and empty picture' \
     -F 'link=http://stackoverflow.com' \
     -F 'picture=' \
     -F 'source=' \
     https://graph.facebook.com/me/feed

UPDATE: This support forum suggests that this is a bug with Facebook, and they suggest posting a 1x1 pixel clear image. I'd prefer a better workaround than this.

解决方案

Facebook has now fixed this bug. Set picture to empty string or set picture=NULL, both should work now.

这篇关于如何在没有缩略图的情况下发布链接到Facebook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆