Facebook og:meta未被识别

问题描述:

好吧...所以我们能够让Facebook正确显示类似按钮的og:meta数据,但评论功能仍然不适合我们。我们确实看到我们遇到了doctype和char编码方面的问题,我们已经解决了这个问题。但正如我所说,评论功能仍然不使用og:元数据。这里是我们的代码Facebook og:meta未被识别

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"> 
<head> 
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<title>White Coat Rack w/ Shelf : Personalized Step Stool : Gifts for Kids : Name Puzzle Stools</title> 
<meta name="DESCRIPTION" content="ItsJust4me.com - personalized gifts for all ages! Personalized Step Stools, Personalized Puzzle Stools, Personalized CD, Personalized Books, Personalized Crayola Gifts, Personalized NFL Gifts, and more!"> 
<meta name="robots" content="INDEXFOLLOW"> 
<meta http-equiv="CONTENT-LANGUAGE" content="English"> 
<meta name="robots" content="INDEXFOLLOW"> 
<meta name="REVISIT-AFTER" content="1"> 
<meta name="RATING" content="General"> 
<meta name="ObjectType" content="Document"> 
<meta name="Revisit" content="1"> 
<meta name="CLASSIFICATION" content="Advertising"> 
<meta name="Distribution" content="Local"> 
<link rel="stylesheet" type="text/css" href="http://www.itsjust4me.com/usermods/_INCstyles_.css" media="all"> 
<link rel="stylesheet" type="text/css" href="http://www.itsjust4me.com/usermods/stylemy.css" media="all"> 
<script type="text/javascript" src="http://www.itsjust4me.com/usermods/timer.js"></script><script type="text/javascript" src="http://www.itsjust4me.com/usermods/ajax.js"></script><meta property="og:title" content="Name Puzzle Stool"> 
<meta property="og:url" content="http://www.itsjust4me.com/Products/CoatRacks/White_Personalized_Coat_Rack.html"> 
<meta property="og:type" content="product"> 
<meta property="og:description" content="ItsJust4me.com - personalized gifts for all ages! Personalized Step Stools, Personalized Puzzle Stools, Personalized CD, Personalized Books, Personalized Crayola Gifts, Personalized NFL Gifts, and more!"> 
<meta property="og:image" content="http://www.itsjust4me.com/prodimages/CoatWhiShe_lg.jpg"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"> 
<head> 
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
<title>White Coat Rack w/ Shelf : Personalized Step Stool : Gifts for Kids : Name Puzzle Stools</title> 
<meta name="DESCRIPTION" content="ItsJust4me.com - personalized gifts for all ages! Personalized Step Stools, Personalized Puzzle Stools, Personalized CD, Personalized Books, Personalized Crayola Gifts, Personalized NFL Gifts, and more!"> 
<meta name="robots" content="INDEXFOLLOW"> 
<meta http-equiv="CONTENT-LANGUAGE" content="English"> 
<meta name="robots" content="INDEXFOLLOW"> 
<meta name="REVISIT-AFTER" content="1"> 
<meta name="RATING" content="General"> 
<meta name="ObjectType" content="Document"> 
<meta name="Revisit" content="1"> 
<meta name="CLASSIFICATION" content="Advertising"> 
<meta name="Distribution" content="Local"> 
<link rel="stylesheet" type="text/css" href="http://www.itsjust4me.com/usermods/_INCstyles_.css" media="all"> 
<link rel="stylesheet" type="text/css" href="http://www.itsjust4me.com/usermods/stylemy.css" media="all"> 
<script type="text/javascript" src="http://www.itsjust4me.com/usermods/timer.js"></script><script type="text/javascript" src="http://www.itsjust4me.com/usermods/ajax.js"></script><meta property="og:title" content="Name Puzzle Stool"> 
<meta property="og:url" content="http://www.itsjust4me.com/Products/CoatRacks/White_Personalized_Coat_Rack.html"> 
<meta property="og:type" content="product"> 
<meta property="og:description" content="ItsJust4me.com - personalized gifts for all ages! Personalized Step Stools, Personalized Puzzle Stools, Personalized CD, Personalized Books, Personalized Crayola Gifts, Personalized NFL Gifts, and more!"> 
<meta property="og:image" content="http://www.itsjust4me.com/prodimages/CoatWhiShe_lg.jpg"> 
<meta property="fb:app_id" content="231280463620932"> 
</head> 
<body onload="GetCurrentTime();GetSpecialInfo();"> 
<div id="livezilla_tracking" style="display:none"></div> 
<div id="fb-root"></div><meta property="fb:app_id" content="231280463620932"> 
</head> 
<body onload="GetCurrentTime();GetSpecialInfo();"> 
<div id="livezilla_tracking" style="display:none"></div> 
<div id="fb-root"></div> 

我们也能最终得到Facebook的刮网页...但仍与评论http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.itsjust4me.com%2FProducts%2FCoatRacks%2FWhite_Personalized_Coat_Rack.html

+0

我已检查Content-Length头,它的存在......还有,我加入HTML命名空间,仍然没有运气... –

+0

所以更新 - 我将meta标签添加到我们的模板文件中作为静态元,它似乎适用于页面上的类似按钮,但不适用于评论框......任何想法? –

+0

请尝试点击“查看我们的抓取工具看到的具体内容”。这应该有助于解决一些错误。 –

好没有运气,错误是抱怨你没有指定一个og:url标签 - 为什么不这样做,看看它是否修复它?

此外,可能无关,但<meta>标记应该是小写。不知道如果Facebook以这种方式验证他们,但值得一试。

+0

它绝对只是缺少错误消息 – zachallia

+0

中指定的'og:url'我添加了og:url标记,并且还将所有元标记设置为小写...仍然没有运气.. –

+0

看着你的页面源代码,你在开启''标记之前,请使用一些javascript。所有这些东西至少应该在'

'中。试试吗? –

你永远不会关闭你的meta -tags,你应该尝试所有这些。

<META NAME="robots" CONTENT="INDEXFOLLOW, " /> 

你也应该设置og:url标签如果短绒抱怨;)

+0

刚刚添加了'/>',但仍然没有运气,同样的错误......似乎我无法与FB取得任何进展...我还添加了og :url标记,但它仍然不会识别它 –