Facebook调试器找不到我的og:图像

时间:2017-11-13 18:02:25

标签: facebook-graph-api facebook-opengraph

Facebook似乎无法找到我在meta og:image中传递的价值。

网址为:ConvertSidToStringSid

调试器,即使在我回忆之后,我仍然会收到警告。

The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

我做错了什么?我觉得它上周有效......

1 个答案:

答案 0 :(得分:1)

您当前的代码有效。问题在于缓存,无论是在他们身边,还是在你们之间,或者介于两者之间,因为他们无法获得您网站的当前版本。

我还在Facebook调试器中检查了您的页面,发现他们正在使用过时的页面版本。他们为您的链接收集的结果可在此处获得:(访问此链接的链接位于调试器页面的底部)

https://developers.facebook.com/tools/debug/echo/?q=https%3A%2F%2Fglouton.ca%2F

在撰写此消息时,代码如下所示:

<!DOCTYPE html>
<html><body>
<p>tyle="height:100%"&gt;

</p>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<!-- Global site tag (gtag.js) - Google Analytics --><script async src="https://www.googletagmanager.com/gtag/js?id=UA-109094225-1"></script><script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'UA-109094225-1');
    </script><meta name="description" content="Glouton est un moteur de recherche intelligent qui permet de trouver des recettes par mot cl&eacute; ou ingr&eacute;dient. Des nouvelles recettes sont index&eacute;es automatiquement chaque jour.">
<meta charset="utf-8">
<meta property="og:url" content="https://glouton.ca">
<meta property="og:type" content="website">
<meta property="og:title" content="Glouton, les meilleures recettes du Qu&eacute;bec">
<meta property="og:description" content="Glouton est un moteur de recherche intelligent qui permet de trouver des recettes par mot cl&eacute; ou ingr&eacute;dient. Des nouvelles recettes sont index&eacute;es automatiquement chaque jour.">
<meta property="og:image" content="https://glouton.ca/site/images/social.png">

由于文件中有很多错误,难怪他们的解析器无法正确找到og:image。你应该在一段时间后再检查一下。