Facebook在分享我的网站网址时表现得很奇怪

时间:2011-10-13 13:31:17

标签: facebook caching opengraph

在堆栈溢出发布此问题之前,我已经尽力了。

我无法理解为什么Facebook不会向hellyalol上的帖子提取任何相关信息,例如标题,缩略图或描述。

这是一个示例http://hellyalol.com/181/my-date/

所有打开的图形标记都已到位,如源代码所示,但facebook调试器不会拾取任何打开的图形标记。

<meta property='og:title' content='Will you be my date?'/> 
<meta property='og:url' content='http://hellyalol.com/181/my-date/'/> 
<meta property='og:site_name' content='Hell Ya LOL'/> 
<meta property='og:type' content='article'/> 
<meta property='og:image' content='http://hellyalol.com/wp-content/uploads/2011/10/fart-exhibit-150x150.jpg'/> 

另一个很大的困惑是,当我将WordPress中的固定链接更改为例如my-date到你的日期时,它会令人惊讶地工作。

例如http://hellyalol.com/195/years-ago/当你在facebook上分享它时,这个工作正常但是调试器仍然没有选择任何打开的图形标签:S但是我仍然为这篇文章更改了固定链接两次才能使用WordPress

任何人都可以帮忙吗?非常感谢:(

服务器详细信息:我正在使用Lightspeed并使用启用了memcache的w3总缓存。

2 个答案:

答案 0 :(得分:0)

请务必在您的开始html标记中忽略这一点:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="https://www.facebook.com/2008/fbml">

这是您当前的html标记 - 如您所见,某些部分缺少(或错误):

<html xmlns="http://www.w3.org/1999/xhtml"
      dir="ltr"
      lang="en-US"
      xml:lang="en-US"
      xmlns:og="http://opengraphprotocol.org/schema/">

答案 1 :(得分:0)

刚刚找到答案。要让Facebook与您的博客合作,您必须在域名前面使用www。我将域名网址从http://hellyalol.com更改为http://www.hellyalol.com及其工作

相关问题