2010-05-20 107 views
0

我遇到了一些與新的Facebook喜歡按鈕有關的問題。它顯示正常,但由於某種原因,它不會拉動頁面的標題。Facebook喜歡不拉標題

我有和我使用og:標題,所有填充,當我查看在他的按鈕的負載上創建的iframe的源,在那裏是空白的。我也試圖把tweetmeme,這是看到的標題,而不是元,或正常的頁面標題。

我在做什麼錯?

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://developers.facebook.com/schema/"> 

<fb:like href="<?=$url?>" layout="button_count" show_faces="false" width="100" font="arial"></fb:like> 

UPDATE:整個頭部

<head> 


<title>Ladder 15 Gets A New Menu!</title> 
<meta content="Growing up can be hard to do, especially in the Mad River family. But Ladder 15 has come into its own over the winter.&nbsp; With some new cocktails, wine selection, a hefty new beer list and veteran Chef David Ansill in the kitchen, you can check your fist pump at" name="Description"> 
<meta content="" name="Keywords"> 
<meta content="cities2night inc." name="author"> 
<meta content="Cities2Night 2010" name="copyright"> 
<meta content="en-us" name="language"> 
<meta content="General" name="rating"> 
<meta content="index,follow" name="robots"> 
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> 
<meta content="Ladder 15 gets a new menu!" name="tweetmeme-title"> 
<meta content="Ladder 15 gets a new menu!" property="og:title"> 
<meta content="article" property="og:type"> 
<meta content="http://philly.cities2night.com/articles/show/listing/11/ladder-15-gets-a-new-menu" property="og:url"> 
<meta content="http://philly.cities2night.com/public/article_images/11.jpg" property="og:image"> 
<meta content="c0176da0ec38aaf107c0ef6c8cdeee38" property="fb:app_id"> 
<meta content="Philly2night.com" property="og:site_name"> 
<meta content="Growing up can be hard to do, especially in the Mad River family. But Ladder" property="og:description"></head> 
+0

我沒有看到任何地方在你的代碼標題應該是... – EAMann 2010-05-20 19:00:45

+0

我已經複製了源代碼。 – matthewb 2010-05-20 19:06:22

回答

1

您使用的是開發URL? This是我在訪問由您的「og:url」指定的鏈接時看到的頁面,其標題爲「Philly2night.com的文章」,並且沒有指定打開的圖形元數據。我想這可能是一個問題,因爲Facebook可能會試圖從可用的URL中獲取信息。

此外,對於有相當數量的「喜歡」的已經你列出的頁面,你可能會遇到這樣的問題:

您可以通過更新您的網頁 標籤更新 頁面的屬性。需要注意的是OG:標題和OG:類型 只可編輯的開始 - 後的頁面將獲得10個喜好,這些 性質變成固定,以避免 誰已經喜歡 頁驚人的用戶以及更改標題 或類型的標籤會導致您的頁面 丟失任何現有的喜歡。

來自FB Open Graph Protocol explanation

+0

我正在使用一個開發網站,現在我把它硬編碼爲1個網址,似乎仍然拉錯了標題,它會影響twitter,因爲它的最後一個標題標籤是可見的。 – matthewb 2010-05-20 19:49:12

+0

http://philadelphia.cities2night.com/articles/show/article/11/get-down-and-dirty-with-the-burger-15 這是一個示例URL,我看到所有的og數據,並且標題是正確的,但如果你喜歡它,它仍然會說「Philly2night.com的文章」這是令人沮喪的。 – matthewb 2010-05-20 19:54:17

+0

緩存可能是一個問題。它現在在FB上正確地共享鏈接(帶有標題)(因爲它不是早期版本),所以也許很快就會出現「like」功能。 – Andrew 2010-05-20 20:06:36