2012-01-25 159 views
0

好吧...所以我們能夠讓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

請嘗試點擊「查看我們的抓取工具看到的具體內容」。這應該有助於解決一些錯誤。 –

回答

2

好沒有運氣,錯誤是抱怨你沒有指定一個og:url標籤 - 爲什麼不這樣做,看看它是否修復它?

此外,可能無關,但<meta>標記應該是小寫。不知道如果Facebook以這種方式驗證他們,但值得一試。

+0

它絕對只是缺少錯誤消息 – zachallia

+0

中指定的'og:url'我添加了og:url標記,並且還將所有元標記設置爲小寫...仍然沒有運氣.. –

+0

看着你的頁面源代碼,你在開啓''標記之前,請使用一些javascript。所有這些東西至少應該在''中。試試嗎? –

1

你永遠不會關閉你的meta -tags,你應該嘗試所有這些。

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

你也應該設置og:url標籤如果短絨抱怨;)

+0

剛剛添加了'/>',但仍然沒有運氣,同樣的錯誤......似乎我無法與FB取得任何進展...我還添加了og :url標記,但它仍然不會識別它 –