【发布时间】:2013-04-25 14:08:57
【问题描述】:
我正在使用 Facebook 的评论插件,并且我指向了一个设置了开放图形标签的页面。
当用户使用插件在我的页面上发表评论时,facebook 在墙上的帖子中使用所有 og 标签,除了 og:site_name,它应该放在链接的标题中,而不是我的域网站正在出现。
示例 HTML:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>My Title</title>
<meta property="og:type" content="article" />
<meta property="og:site_name" content="My Site Name" />
<meta property="og:title" content="My Title" />
<meta property="og:url" content="http://www.example.com" />
<meta property="og:image" content="http://www.example.com/some_image.png" />
<meta property="og:description" content="This is a description" />
<meta property="fb:app_id" content="FB_APP_ID" />
</head>
<body>
.....
</body>
</html>
但这是我最终在 Facebook 上看到的内容:
请注意标题是“www.example.com”而不是我希望在那里看到的“我的站点名称”。
有人知道OG为什么会忽略我的标签吗?
提前致谢,
DW
【问题讨论】: