Weibo meta tag
Weibo Meta Tags
Weibo Meta Tags, Weibo Meta Tags, support and support conventional meta tags under the Open graph protocol. Compatible, and based on national conditions, limited extension marking of object types or attributes that OpenGraph is not applicable to. Can be used with OpenGraph.
Why configure Weibo Meta Tags?
Traditional Internet information units are often indexed and circulated based on Web Pages and URLs as clues. By defining Weibo Meta Tags, you can penetrate Web Pages, accurately index Objects on the Internet, and format and manage content on the Internet. With formatted Object data, you can provide users with a flexible, scalable, and easy-to-read content display module.
How to define the object type? What object types does the like component support?
How to define Weibo Meta Tags
Find the object type suitable for your web page, query and set the attribute value through the object attribute table, the detailed settings will To bring better results, just put the code into the head. Two deployment examples are listed below for explanation
Place the following <meta> tag in the <head> tag of the web page.
The above code uses OpenGraph and Weibo Meta Tags hybrid mode, Weibo Meta Tags currently supports five OpenGraph basic attributes, namely:
The above OG attributes can be directly interoperated with Weibo Meta Tags attributes. An example of completely using Weibo Meta Tag code format is as follows:
##
<meta property="og:type" content="webpage" />
<meta property="og:url" content="http:/ /sports.sina.com.cn/nba/2012-12-26/06576353009.shtml" />
<meta property="og:title" content="Christmas game total scoring champion! Kobe Bryant 34 5 writes Historical violent statistics No. 2 in 16 years" />
<meta property="og:description" content="Kobe Bryant unexpectedly scored 34 points and became the scoring leader in the history of the Christmas game. Not only that, the 34-year-old god has scored 30 points in 9 consecutive games, creating the second best score in his career and continuing to move towards the feat of 16 consecutive games in 2003!" />
//Optional
<meta property="og:image" content="http://i2.sinaimg.cn/ty/nba/2012-12-26/U4934P6T12D6353009F1286DT20121226070232.jpg" />
<meta name=" weibo:webpage:create_at" content="2012-12-26 06:57:00" />
<meta name="weibo:webpage:update_at" content="2012-12-26 06:57: 00" />
##Strict definition and non-strict definition
Multi-valued definition of a single attribute
The multi-valued definition of a single attribute is an object attribute (i.e. Mark) can be assigned multiple different values at the same time, and the attribute values are displayed in order according to the needs of the presentation layer product.
Method: Each line defines an attribute, which requires meta tags. The same attributes and different assignments are defined line by line in order.
Example:
Note 1: Currently this method is only open to the image attribute of all object types, and other attributes are not supported yet.
Note 2: The image attribute multi-value definition can currently be used to share window preset images.
Object detailed attribute table
Comparison table of attributes contained under each type of object (object) :
<meta property="og:image" content="Example picture 1" />
<meta property="og:image" content="Example picture 2" /> ;
<meta property="og:image" content="Example picture 3" />
<meta name="weibo:webpage: image" content="Picture example 4" />
<meta name="weibo:webpage: image" content="Picture example 5" />
# #Code example:
Code example:
HTML##Audio
##Code example:
HTML
##Video (video)
## Code example:
HTML
<meta property="og:type" content="video" />
<meta property="og:url" content="URL of the video Address" />
<meta property="og:title" content="Display name of the video" />
<meta property="og:description" content="Text description of the video" />
//Optional
<meta property="og:image" content="Display image of the video" />
<meta name="weibo:video:embed_code" content ="HTML embed code for video playback" />
<meta name="weibo:video:stream" content="Link source for video stream" />
<meta name="weibo: video:duration" content="The duration of the video playback, seconds" />
<meta name="weibo:video:create_at" content="The creation time of the video" />
<meta name ="weibo:video:update_at" content="Video update time" />
Code example:
##HTML
Note: The og:image parameter corresponds to weibo:image:image (thumbnail) and weibo:image:full_image (original large image). If you need to distinguish between thumbnails and original large images, please set weibo:image:image respectively. and weibo:image:full_image, the weibo tag will overwrite the og tag.
##Code example:
Code example:
## Product (product)
Code example:
HTML
book
Code example:
##Game
##Code example:
HTML
Application (app)
##Code example:
HTML