這是在阿裡巴巴國際站看到的head部分:
? 01 02 03 04 05 06 07 08 09 10 11<
title
>Manufacturers, Suppliers, Exporters & Importers from the world's largest online B2B marketplace-Alibaba.com</
title
>
<
meta
content
=
"text/html; charset=utf-8"
http-equiv
=
"Content-Type"
/>
<
meta
name
=
"keywords"
content
=
"Manufacturers, Suppliers, Exporters, Importers, Products, Trade Leads, Supplier, Manufacturer, Exporter, Importer"
/>
<
meta
name
=
"description"
content
=
"Find quality Manufacturers, Suppliers, Exporters, Importers, Buyers, Wholesalers, Products and Trade Leads from our award-winning International Trade Site. Import & Export on alibaba.com"
/>
<
meta
property
=
"og:title"
content
=
"Find quality Manufacturers, Suppliers, Exporters, Importers, Buyers, Wholesalers, Products and Trade Leads from our award-winning International Trade Site. Import & Export on alibaba.com"
/>
<
meta
property
=
"og:type"
content
=
"site"
/>
<
meta
property
=
"og:url"
content
=
"http://www.alibaba.com"
/>
<
meta
property
=
"og:site_name"
content
=
"Alibaba"
/>
<
meta
property
=
"fb:admins"
content
=
"100002227819697,124207444332529"
/>
<
meta
property
=
"fb:page_id"
content
=
"22437985072"
/>
<
meta
property
=
"fb:app_id"
content
=
"124207444332529"
/>
Meta Property=og標簽是什麼呢?
og是一種新的HTTP頭部標記,即Open Graph Protocol:
The Open Graph Protocol enables any web page to become a rich object in a social graph.
即這種協議可以讓網頁成為一個“富媒體對象”。
用了Meta Property=og標簽,就是你同意了網頁內容可以被其他社會化網站引用等,目前這種協議被SNS網站如Fackbook、renren采用。
SNS已經成為網絡上的一大熱門應用,優質的內容通過分享在好友間迅速傳播。為了提高站外內容的傳播效率,2010年F8會議上Facebook公布了一 套開放內容協議(Open Graph Protocol),任何網頁只要遵守該協議,SNS就能從頁面上提取最有效的信息並呈現給用戶。
Open Graph Protocol應用指南
參與到Open Graph Protocol的好處
● 能夠正確的分享您的內容到SNS網站
● 幫助您的內容更有效的在SNS網絡中傳播
Meta Property標簽的應用
● 按照您網頁的類型,在<head>中添加入meta標簽,並填上相應的內容
● 如果一個頁面上有多個需要標識出的內容怎麼辦?
您可以重復meta標簽,將認為og:type 標簽是每一段內容的起始處,
例如:
? 01 02 03 04 05 06 07 08 09 10 11 12 13 14<
meta
property
=
"og:type"
content
=
"video"
/>
<
meta
property
=
"og:title"
content
=
"五月天_突然好想你MV現場版"
/>
<
meta
property
=
"og:image"
content
=
"http://g1.ykimg.com/0100641F464AC21FF0B3ED00F48F151F43D4BF-5F0F-BD39-76EA-E5E20A1887C4"
/>
<
meta
property
=
"og:url"
content
=
"http://v.youku.com/v_show/id_XMTIyMTY5NzMy.html"
/>
<
meta
property
=
"og:videosrc"
content
=
"http://player.youku.com/player.php/sid/XMTIyMTY5NzMy&isAutoPlay=true/v.swf"
/>
<
meta
property
=
"og:width"
content="500″ />
<
meta
property
=
"og:height"
content="416″ />
<
meta
property
=
"og:type"
content
=
"video"
/>
<
meta
property
=
"og:title"
content
=
"五月天_突然好想你MV現場版_AA"
/>
<
meta
property
=
"og:image"
content
=
"http://g1.ykimg.com/0100641F464AC21FF0B3ED00F48F151F43D4BF-5F0F-BD39-76EA-E5E20A1887C44444"
/>
<
meta
property
=
"og:url"
content
=
"http://v.youku.com/v_show/id_XMTIyMTY5NzMyyyyyyyyyyyyyyyy.html"
/>
<
meta
property
=
"og:videosrc"
content
=
"http://player.youku.com/player.php/sid/XXXXXXXXXXXXMTIyMTY5NzMy&isAutoPlay=true/y.swf"
/>
<
meta
property
=
"og:width"
content
=
"600"
/>
<
meta
property
=
"og:height"
content
=
"716"
/>
● 安裝SNS網站插件如人人網插件,同樣會出現Meta Property標簽,卸載後可以去除。?
使用Open Graph Protocol應注意
meta property=og代碼的功能並不等同於網頁的meta name標簽,兩者針對的對象不一致,功能不同。
如果網站上要使用Open Graph Protocol,那麼,meta property=og和meta name、Title標簽應同時賦值。
比如某家B2C網站,<head>如下:
<
head
>
<
meta
http-equiv
=
"Content-Type"
content
=
"text/html;charset=utf-8"
/>
<
title
>Cool Gadgets at the Right Price - Worldwide Free Shipping - ******</
title
>
<
meta
property
=
"og:title"
content
=
"**’sFacebook"
/>
<
meta
property
=
"og:type"
content
=
"product"
/>
<
meta
property
=
"og:url"
content
=
"http://www.******.com"
/>
<
meta
property
=
"og:image"
content
=
"http://www.******.com/logo.gif"
/>
<
meta
property
=
"og:site_name"
content
=
"******.COM"
/>
<
meta
property
=
"og:description"
content
=
"CoolGadgets at the RightPrice - Worldwide Free Shipping - ******"
/>
<
meta
property
=
"fb:admins"
content
=
"100001422224225"
/>
<
meta
property
=
"fb:page_id"
content
=
"241333394220"
/>
<
link
href
=
"/css/reset.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"/css/default/all.16666.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
type
=
"text/javascript"
src
=
"/shop.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"/scripts/all.16666.build.js"
></
script
>
<
meta
http-equiv
=
"Content-Type"
content
=
"text/html;charset=utf-8"
/>
<
meta
name
=
"description"
content
=
"Online shopping for cool gadgets at the right price. "
/>
<
meta
name
=
"keywords"
content
=
"cool gadgets, cheap gadgets, free shipping"
/>
</
head
>
如果你用上了Meta Property標簽,你得在後台設置好,不然,就是空白.
Open Graph Protocol對SEO的影響
有些人使用所謂的網站質量在線檢測,檢測後結果提示Meta Property=og這段代碼有問題,特別是一些SEO的檢測,更是提示“特別錯誤”!然後刪除Meta Property=og代碼,檢測正常。
因此擔心Meta Property=og這段代碼會對網站照成不良影響。
其實Open Graph Protocol並不會對SEO照成不良影響,相反,應用的合理,非常有利於網站的推廣。