【问题标题】:Facebook OG tags not working automaticallyFacebook OG 标签无法自动工作
【发布时间】:2019-08-03 21:29:50
【问题描述】:

我们正面临 Facebook 分享的问题。基本上,每当我们发布新文章时,Facebook 调试器都看不到 og 标签(尽管所有标签都在那里),我们必须再次手动抓取链接 10 次才能使预览正常工作。

以下是我们在帖子中包含的 og 标签:

<meta property="og:locale" content="en_US" /><meta property="og:type" content="article" /><meta property="og:title" content="Σαν σήμερα - Famagusta News" /><meta property="og:description" content="Διαβάστε τα σημαντικότερα γεγονότα της ημέρας στο Famagusta.News" /><meta property="og:url" content="https://famagusta.news/san-simera/199499/" /><meta property="og:site_name" content="Famagusta News" /><meta property="article:publisher" content="https://www.facebook.com/famagusta.news" /><meta property="article:section" content="Σαν Σημερα" /><meta property="article:published_time" content="2019-03-12T22:06:39+00:00" /><meta property="fb:app_id" content="447915658939075" /><meta property="og:image" content="https://cdn.famagusta.news/wp-content/uploads/2019/03/12/snsmr5-1200x630.jpg" /><meta property="og:image:secure_url" content="https://cdn.famagusta.news/wp-content/uploads/2019/03/12/snsmr5-1200x630.jpg" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta property="og:image:alt" content="Σαν σήμερα" /> 

这是我们在第一次尝试时收到的错误:

推断属性 'og:image' 属性应该是显式的 提供,即使可以从其他标签推断出一个值。失踪 属性 缺少以下必需属性:og:url, og:type, og:title, og:image, og:description, fb:app_id Curl Timeout 抓取 URL 的请求超时。卷曲错误卷曲错误:28 (OPERATION_TIMEOUTED)

预览结果here

我们的网站为图片使用 SSL 证书、Cloudflare(基本)和 KeyCDN。

【问题讨论】:

    标签: wordpress facebook facebook-graph-api


    【解决方案1】:

    使用http:// URL 到og:imagehttps:// URL 到og:image:secured 或另一个og:image

    【讨论】:

      【解决方案2】:

      https://developers.facebook.com/docs/sharing/webmasters/

      根据文档,您必须添加 og:image:widthog:image:height 以确保立即加载。

      编辑:我刚刚看到您确实提供了标签。您的服务器似乎有问题,这里讨论了该错误:Facebook developer tool throw: Curl Error : OPERATION_TIMEOUTED Operation timed out after 10000 milliseconds with 0 out of -1 bytes received

      【讨论】:

      • 您好,我们包含两个标签:
      • 我看过讨论。我也在使用缓存系统(WP Rocket),但这并不能解决我的问题。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-15
      • 1970-01-01
      • 1970-01-01
      • 2012-06-20
      • 1970-01-01
      相关资源
      最近更新 更多