【问题标题】:Why can't Open Graph checkers detect Open Graph data?为什么 Open Graph 检查器无法检测 Open Graph 数据?
【发布时间】:2019-12-23 01:48:14
【问题描述】:

My page,在添加 SSL 证书 (Let's Encrypt) 后,分享链接时无法让 Facebook 或 Twitter 获取预览。我已关注The Open Graph protocol 并包含以下开放图形标签:

<meta property="og:type" content="article" />
<meta property="og:title" content="Corner Timer: gently make you feel guilty on time-wasting apps" />
<meta property="og:url" content="https://lyminhnhat.com/resources/productivity/corner-timer-gently-make-you-feel-guilty-on-time-wasting-apps/" />
<meta property="og:description" content="Make you feel guilty for your unproductive curiosity" />
<meta name="twitter:site" content="@ooker777" />
<meta name="twitter:text:title" content="Corner Timer: gently make you feel guilty on time-wasting apps" />
<meta name="twitter:image" content="https://lyminhnhat.com/wp-content/uploads/2019/04/Screenshot_2019-04-11-11-31-39.png?w=640" />
<meta name="twitter:card" content="summary_large_image" />

但是,我使用的所有 3 个 Open Graph 检查器 - OpenGraphCheck.comAbhinay Rathore's Open Graph TesterFacebook's Object Debugger - 都说没有 Open Graph 工具。不过有一个例外:Iframely's Embed Codes

既然三个跳棋都有这个问题,可能这不仅仅是Facebook的问题,正如FB OpenGraph og:image not pulling images (possibly https?)所建议的那样。尽管如此,即使我尝试仅使用 html 链接,使用&lt;html prefix="og: http://ogp.me/ns#"&gt; 去除结尾空白,也没有任何改变。

This person 表明它可能是服务器问题。你知道为什么会这样吗?


相关:Would having a fresh website with SSL already avoid Open Graph problem?

【问题讨论】:

  • 你有没有试过先把你的文字改成全英文,看看是否有效?
  • @whalesingswee 是的,我也在我的英语域上进行测试。查看我的编辑
  • 我在这里检查过应该也是服务器问题,FB 调试器无法抓取您的网站。返回空白,一定和服务器配置有关,是共享主机还是VPS?
  • 您也可以检查一下:redirectdetective.com 您的网站似乎没有在应有的地方结束?
  • 我使用共享主机。使用那个检查器,我只得到An unknown error or HTTP state has occured. This will be investigated.

标签: url ssl-certificate meta facebook-opengraph


【解决方案1】:

在我的情况下,爬虫似乎只是有一个错误。我对这个问题有自己的规范答案,希望对某人有所帮助:FB OpenGraph og:image not pulling images (possibly https?)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-25
    • 2014-12-25
    • 1970-01-01
    • 1970-01-01
    • 2018-10-25
    • 1970-01-01
    相关资源
    最近更新 更多