2

我想将我网站上的文章发布到我的时间轴上,但是沿着这条线的某个地方,元标记被清空了。例如: http ://www.uisge-beatha.eu/logboek/401/Verbouwing-koelbox-3.html 如果我查看网站的来源,我会看到以下 OG-tags

<link rel="canonical" href="http://www.uisge-beatha.eu/logboek/401/30/Verbouwing-koelbox-3.html" />
<meta property="fb:app_id" content="175931732519501" />
<meta property='og:type' content='article'> 
<meta property="og:url" content="http://www.uisge-beatha.eu/logboek/401/30/Verbouwing-koelbox-3.html" />
<meta property="og:image" content="http://www.uisge-beatha.eu/uploads/cgblog/id401&#47;Koelkast_-_30.jpg" />
<meta property="og:title" content="Verbouwing koelbox - 3" />
<meta property="og:description" content="Het testen van de compressor..." />

通过检查 FB 调试器,它有时会正常处理,有时会失败。都是出于未知的原因。https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.uisge-beatha.eu%2Flogboek%2F401%2FVerbouwing-koelbox-3.html

在处理正常的情况下,通过查看 OG 元标记,我确实看到了基于页面来源的预期信息。但是,如果我查看刮板,这些元标记是空的。

<link rel="canonical" href="http://www.uisge-beatha.eu/Nieuwtjes.html">
<meta property="fb:app_id" content="175931732519501">
<meta property="og:type" content="article">
<meta property="og:url" content="">
<meta property="og:image" content="/">
<meta property="og:title" content="">
<meta property="og:description" content="">

不知道为什么这些都是空的。一直在寻找解决方案几个小时,但没有找到。

负责“填充”元数据的站点模板包含 smarty 逻辑:

<link rel="image_src" type="image/jpeg" href="{$entry->file_location}&#47;{$entry->fieldsbyname.facebook_thumbnail->value}" alt="{$entry->title|escape}" />
{if isset($canonical)}<link rel="canonical" href="{$canonical}" />
{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />
{/if}
<meta property="fb:app_id" content="175931732519501" />
<meta property='og:type' content='article'> 
<meta property="og:url" content="{$canonical}" />
<meta property="og:image" content="{$entry->file_location}&#47;{$entry->fieldsbyname.facebook_thumbnail->value}" />
<meta property="og:title" content="{$entry->title|escape}" />
<meta property="og:description" content="{$entry->summary|strip_tags:false}" />

有人愿意帮助我解决这种奇怪的行为吗?

4

0 回答 0