AddThis Academy

An ever-growing library of resources to help you become a better online marketer.

How to Use the Sina Weibo Like Button

Note: This documentation applies to our advanced configuration tools. For the available sizes of our newest tools look in their configuration.

Getting Started
You must first upgrade your html tag to use the Sina Weibo open graph namespace. Like this:

<html xmlns:wb=">

​Basic Usage
To create a Sina Weibo Like Button using AddThis, you need to create an anchor HTML element and use the addthis_button_sinaweibo_like class name.  Like this:

<a class="addthis_button_sinaweibo_like"></a>

It will look like this:


Toolbox Usage
The Sina Weibo third-party button can also be used inside of an AddThis toolbox like this:

    <div class="addthis_toolbox addthis_default_style ">
          <a class="addthis_button_facebook_like"></a>
          <a class="addthis_button_linkedin_counter"></a>
          <a class="addthis_button_tweet"></a>
          <a class="addthis_button_pinterest_pinit"></a>
          <a class="addthis_button_sinaweibo_like"></a>
          <a class="addthis_counter addthis_pill_style"></a>

It will look like this:

Style Options
If you would like to customize the look of the Sina Weibo Button, then here are the 3 supported style attributes:


style – “full”, “text”, “number”, or “simple”
skin – “silver”
language – “zh_tw”

style – “number”
skin – “” (This defaults to red)
language – “” (This defaults to Chinese Simplified)

Here is an example of customizing the Sina Weibo Button style attributes:

<a class="addthis_button_sinaweibo_like" wb:like:style="simple" wb:like:skin="silver" wb:like:language="zh_tw"></a>

Attribute Options
If you would like to customize attributes associated with the liked content, then you must either use Open Graph meta tags on the page, or pass the appropriate Open Graph meta tag values as custom attributes on the AddThis Sina Weibo Like Button and we will take care of creating the Open Graph meta tags for you.

It is important to note that you can only have one Sina Weibo Like Button per page, since the Open Graph url (og:url) must point to the appropriate page that contains the meta tags for the content.

Here are the default Open Graph values if no meta tags or custom attributes are present:

og:type – “webpage”
og:url – “The URL of the current page”
og:title – “The title of the current page”

Custom Attributes Example
Here is an example of providing the above Open Graph meta tags as custom attributes (instead of HTML meta tags) on the AddThis Sina Weibo Like Button:

<a class="addthis_button_sinaweibo_like" wb:like:title="Isn't testing fun?"></a>

Open Graph Example
Here is an example of Open Graph meta tags that you could include in your HTML file:

<meta property="og:title" content="Isn't testing fun?" />

Weibo Prefix Open Graph Example
You can also use a special Open Graph Sina Weibo Prefix as the meta tags like this:

<meta name="weibo:title" content="Isn't testing fun?" />

Last modified:  November 17th, 2015