我有一個公司的網頁,我也添加了Facebook的'喜歡'按鈕。我已經爲FB和OG定義了命名空間,並添加了所有的Metatags - 我的代碼如下。網址是www.akascia.com。Facebook Linter顯示og:鍵入爲網頁時,它被定義爲公司
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://ogp.me/ns#">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta property="og:title" content="Akascia" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://www.akascia.com" />
<meta property="og:image" content="http://www.akascia.com/images/akascia_fb_logo.png" />
<meta property="og:site_name" content="Executive search, purely done by Akascia" />
<meta property="fb:admins" content="********" />
<meta property="fb:page_id" content="**********" />
<meta property="og:email" content="[email protected]"/>
<meta property="og:phone_number" content="+44 2070 787 665"/>
然而,當我通過Facebook的棉短絨運行的網站,我得到如下結果:
警告應固定
Extraneous Property: Objects of this type do not allow properties named fb:page_id.
Extraneous Property: Objects of this type do not allow properties named og:email.
Extraneous Property: Objects of this type do not allow properties named og:phone_number.
的Open Graph對象屬性
fb:admins Array of length 1
⍾ ********
og:url http://www.akascia.com/
og:type website
og:title Akascia
og:image
og:site_name Executive search, purely done by Akascia
og:updated_time 1320835017
原始的Open Graph文檔信息
Canonical URL http://www.akascia.com/
Meta Tag <meta property="og:title" content="Akascia" />
Meta Tag <meta property="og:type" content="company" />
Meta Tag <meta property="og:url" content="http://www.akascia.com" />
Meta Tag <meta property="og:image" content="http://www.akascia.com/images/akascia_fb_logo.png" />
Meta Tag <meta property="og:site_name" content="Executive search, purely done by Akascia" />
Meta Tag <meta property="fb:admins" content="731575475" />
Meta Tag <meta property="fb:page_id" content="114216411121" />
Meta Tag <meta property="og:email" content="admin@akascia.com" />
Meta Tag <meta property="og:phone_number" content="+44 2070 787 665" />
如此看來,它認爲該網頁應該有OG:類型:網頁,即使我宣佈爲「公司」,並在原始數據是顯示它也被劃分爲'公司'。因此它給出了電話號碼等的警告。
'喜歡'按鈕似乎工作,但我不是100%確定它是正確的。所以我有點困惑,爲什麼會發生這種情況。
我在嘗試使用fb linter時出錯:錯誤刮頁:\t錯誤的響應代碼 – AllisonC
我試圖驗證頁面時也出現此錯誤:500無法連接到www.akascia.com:80 (連接:超時) – AllisonC
我們有同樣的確切問題... og:type是公司,Facebook將它視爲og:type website。 –