在将这个问题发布到堆栈溢出之前,我已经尝试了一切。
我无法理解为什么 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 中的永久链接时,例如将“我的日期”更改为“您的日期”,它会令人惊讶地起作用。
例如 http://hellyalol.com/195/years-ago/ 这个正在工作当你在 facebook 上分享它时很好,但调试器仍然没有选择任何打开的图形标签:S 但我仍然为这篇文章更改了两次永久链接,然后才可以与 WordPress 一起使用
有人可以帮忙吗?非常感谢 :(
服务器详细信息:我正在使用 Lightspeed 并使用启用了 memcache 的 w3 总缓存。
I have tried everything I could before posting this question here on stack overflow.
I am unable to understand why Facebook doesn't pick up any related information to posts on hellyalol for example title, thumbnails or description.
This is an example http://hellyalol.com/181/my-date/
All the open graph tags are in place as shown by source code but facebook debugger doesn't pickup any open graph tag.
<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'/>
Another big confusion is When I change permalinks in WordPress for example my-date to your-date it surprisingly works.
e.g http://hellyalol.com/195/years-ago/ this one is working just fine while you share it on facebook but still debugger doesn't pick any open graph tags :S but still I changed the permalink twice for this post before it could work with WordPress
Can any one help? Thanks a lot :(
Server Details: I am using Lightspeed and using w3 total cache with memcache enabled.
发布评论
评论(2)
确保在你的开始 html 标签中不要错过这个:
这是你当前的 html 标签 - 正如你所看到的,有些部分丢失了(或错误):
Make sure to not miss this in your opening html tag:
This is your current html tag - as you see, some parts are missing (or wrong) there:
刚刚找到答案。为了让 facebook 能够与您的博客配合使用,您的域名前面必须有 www。我将域名网址从 http://hellyalol.com 更改为 http://www.hellyalol.com 及其工作
Just found the answer. For facebook to work with your blog, you should must have www in front of domain. I changed the domain url from http://hellyalol.com to http://www.hellyalol.com and its working