Facebook Sharer看不到OG:IMAGE标签在第一次检查 [英] Facebook Sharer Can't See OG:IMAGE Tag At First Check

查看:1336
本文介绍了Facebook Sharer看不到OG:IMAGE标签在第一次检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过Facebook分享此网址(由于facebook缓存,用任意随机字符串更改RANDOM_STRING):

I am trying to share this url via facebook(change RANDOM_STRING with any random string because of facebook cache):

http://www.ikposta.com/blog/goster/72/test_RANDOM_STRING

首先尝试Facebook将决定图片是有一个男人。刷新Facebook页面,然后再次尝试分享相同的网址,此时图片将被更改,您将看到正确图像的键盘图像。

at first try facebook will decide picture which is there is a men. Refresh facebook page and try again share with same url at this time picture will be changed and you will see keyboard image which is correct image.

og :image 标签总是正确的,为什么会发生这种情况?

og:image tag is always correct why this is happening ?

如何防止?

推荐答案

Facebook对象调试器,以确保您的OG图像标记正确被Facebook接收。这也将强制重新缓存图像。

Run your URL through the Facebook Object Debugger to make sure that your OG image tag is correctly being picked up by Facebook. This will also force a re-cache of the image.

我快速运行,出现了几个错误。主要缺少URL和标题OG标签。你会想要避免循环重定向。参见这里: Debugged

I ran it through quickly and there were a couple errors that came up. Primarily missing URL and title OG tags. You'll want to have these to avoid circular redirects. See here: Debugged

我将个人删除那个缓存中的一切。这是Facebook的混乱,因为它看起来像一个目录。如果有的话,请使用查询字符串。

I would personally remove that cache bust all together. It's confusing Facebook because it looks like a directory. If anything, use a query string.

这篇关于Facebook Sharer看不到OG:IMAGE标签在第一次检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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