drtzb06222 2014-12-18 12:50
浏览 63

Facebook Open Graph协议发布链接到墙壁不显示图像

I'm using the (The Open Graph protocol[Source]). I've searched the most of the stackoverflow, but i seems, that there aren't any answers to my question.

My <meta> code is:

<meta property="og:title" content="Testing" />
<meta property="og:description" 
  content="This is the desciption testing 123" />
<meta property="og:image" content="http://www.byui.edu/images/agriculture-life-sciences/flower.jpg" />

When i copy paste a link(http://mywebsite.com/testing.php) into facebook, on my wall, it pulls out the og:title and og:description perfectly everytime, even when i make a new PHP-file document example: testing1.php. But it dosen't show the image on the post, when i refresh the facebook 3-6 times, copy pasting the link, to the status input, it will somehow be shown, but how can it be that i need to refresh it 3-6 times, before facebook cache the image, and before the image will be shown? Is there are work around on this problem or something i've been missing? I'm using a HTTP url.

Thanks!

  • 写回答

1条回答 默认 最新

  • douxuexiao1748 2014-12-18 17:08
    关注

    Facebook does indeed cache its images, and this can sometimes cause problems (such as you are experiencing). The best way I know how to "force" clean Facebook's cache is by running your website through their debugger tool. It used to be called "lint" when I was working with it, but I think this should have the same functionality.

    Whether it works or not, I'd recommend you use it. It's a handy utility either way!

    评论

报告相同问题?

悬赏问题

  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来