新闻详情

News Information

SEO优化:meta property=og(Open Graph Protocol)是什么?开放内容协议?
2018/8/22 23:07:27

SEO优化:meta property=og(Open Graph Protocol)是什么?开放内容协议?MetaProperty=og标签是什么呢?og是一种新的HTTP头部标记,即OpenGraph Protocol:The OpenGraph Protocol enablesany web page to become a rich object in a socialgraph. 即这种协议可以让网页成为一个“富媒体对象”。

SEO优化:meta property=og(Open Graph Protocol)是什么?开放内容协议?

MetaProperty=og标签是什么呢?

og是一种新的HTTP头部标记,即OpenGraph Protocol

The OpenGraph Protocol enablesany web page to become a rich object in a socialgraph.

即这种协议可以让网页成为一个富媒体对象

用了MetaProperty=og标签,就是你同意了网页内容可以被其他社会化网站引用等,目前这种协议被SNS网站如Fackbookrenren采用。

SNS已经成为网络上的一大热门应用,优质的内容通过分享在好友间迅速传播。为了提高站外内容的传播效率,2010F8会议上Facebook公布了一套开放内容协议(OpenGraph Protocol),任何网页只要遵守该协议,SNS就能从页面上提取最有效的信息并呈现给用户。

OpenGraph Protocol应用指南

参与到OpenGraph Protocol的好处

能够正确的分享您的内容到SNS网站

帮助您的内容更有效的在SNS网络中传播

MetaProperty标签的应用

按照您网页的类型,在<head>中添加入meta标签,并填上相应的内容

如果一个页面上有多个需要标识出的内容怎么办?

您可以重复meta标签,将认为og:type 标签是每一段内容的起始处,例如:

<metaproperty="og:type"content="video"/>

<metaproperty="og:title" content="五月天_突然好想你MV现场版"/>

<metaproperty="og:image"content="http://g1.ykimg.com/0100641F464AC21FF0B3ED00F48F151F43D4BF-5F0F-BD39-76EA-E5E20A1887C4"/>

<metaproperty="og:url"content="http://v.youku.com/v_show/id_XMTIyMTY5NzMy.html"/>

<metaproperty="og:videosrc"content="http://player.youku.com/player.php/sid/XMTIyMTY5NzMy&isAutoPlay=true/v.swf"/>

<metaproperty="og:width" content="500″/>

<metaproperty="og:height" content="416″/>

<metaproperty="og:type"content="video"/>

<metaproperty="og:title" content="五月天_突然好想你MV现场版_AA"/>

<metaproperty="og:image"content="http://g1.ykimg.com/0100641F464AC21FF0B3ED00F48F151F43D4BF-5F0F-BD39-76EA-E5E20A1887C44444"/>

<metaproperty="og:url"content="http://v.youku.com/v_show/id_XMTIyMTY5NzMyyyyyyyyyyyyyyyy.html"/>

<metaproperty="og:videosrc"content="http://player.youku.com/player.php/sid/XXXXXXXXXXXXMTIyMTY5NzMy&isAutoPlay=true/y.swf"/>

<metaproperty="og:width" content="600"/>

<metaproperty="og:height"content="716"/>

安装SNS网站插件如人人网插件,同样会出现MetaProperty标签,卸载后可以去除。

使用OpenGraph Protocol应注意

MetaProperty=og代码的功能并不等同于网页的metaname标签,两者针对的对象不一致,功能不同。

如果网站上要使用opengraph protocol,那么,MetaProperty=ogMetaNameTitle标签应同时赋值。

文章开头举例的B2C网站,<head>如下:

<head>

<metahttp-equiv="Content-Type" content="text/html;charset=utf-8"/>

<title>CoolGadgets at the Right Price - Worldwide Free Shipping -******</title>

<metaproperty="og:title" content="**’s Facebook"/>

<metaproperty="og:type"content="product"/>

<metaproperty="og:url" content="http://www.******.com"/>

<metaproperty="og:image"content="http://www.******.com/logo.gif"/>

<metaproperty="og:site_name" content="******.COM"/>

<metaproperty="og:description" content="Cool Gadgets at the Right Price- Worldwide Free Shipping -******"/>

<metaproperty="fb:admins" content="100001422224225"/>

<metaproperty="fb:page_id"content="241333394220"/>

<linkhref="/css/reset.css" rel="stylesheet" type="text/css"/>

<linkhref="/css/default/all.16666.css" rel="stylesheet" type="text/css"/>

<scripttype="text/javascript"src="/shop.js"></script>

<scripttype="text/javascript"src="/scripts/all.16666.build.js"></script>

<metahttp-equiv="Content-Type" content="text/html;charset=utf-8"/>

<metaname="description"content="Online shopping for cool gadgets at the right price. "/>

<metaname="keywords"content="cool gadgets, cheap gadgets, free shipping"/>

</head>

如果你用上了metaproperty标签,你得在后台设置好,不然,就是空白.


OpenGraph ProtocolSEO的影响

有些人使用所谓的网站质量在线检测,检测后结果提示MetaProperty=og这段代码有问题,特别是一些SEO的检测,更是提示特别错误!然后删除MetaProperty=og代码,检测正常。

因此担心MetaProperty=og这段代码会对网站照成不良影响。

其实OpenGraph Protocol并不会对SEO照成不良影响,相反,应用的合理,非常有利于网站的推广。