我想在我的网页上使用og meta标签分享按钮。但Facebook并没有使用任何我的og meta标签。所以我尝试了调试器,它获取了最新版本。但我无法理解错误。
这些是我的标签
<!--FACEBOOK-->
<meta property="og:title" content="Vriendinnendag, het gezelligste dagje Sauna"/>
<meta property="og:site_name" content="A-Style beautyfarm, Nieuwegein"/>
<meta property="og:url" content="https://astyle.home.xs4all.nl/beautyfarm/index.html"/>
<meta property="og:description" content="Dagje BEAUTYFARM met je vriendin? A-Style Spa - Nieuwegein (Utrecht) De gezelligste verwendag. De vriendinnendag is een all-in beautyarrangement voor lage prijs. Top Dagje sauna doe je bij A-Style in Nieuwegein"/>
<meta property="og:image" content="https://astyle.home.xs4all.nl/beautyfarm/images/Ingang-A-Style-beautyfarm-sneeuw.jpg"/>
<meta property="fb:app_id" content="166407543414563" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="nl-NL" />
this是我现在测试的页面
这是我的分享按钮
<!-- Facebook -->
<a href="http://www.facebook.com/sharer.php?u=https://astyle.home.xs4all.nl/beautyfarm/spa_wellness_arrangementen/vriendinnendag_wellness_arrangement.html" target="_blank">
<img src="https://simplesharebuttons.com/images/somacro/facebook.png" alt="Facebook" />
</a>
这是共享调试器的警告
推断属性&#39; og:image&#39;属性应该明确 提供,即使可以从其他标签推断出值。
答案 0 :(得分:0)
我发现了这个问题。
我必须将og:url设置为我的主页,这就是它寻找'og'元素的位置。 og:url应该指向包含OG元素的网页