18

I am working on a website that will marketed in China, and I would like to know if there is a method to create "share" buttons for Renren (Similar to Facebook), Weibo (Similar to Twitter) and Baidu Like (Similar to Google's +1) using only HTML.

For example, for Facebook, Twitter and Google's +1 you would use the following:

I know that Renren uses the following:

However, I would love to know what the HTML only URLs for Weibo and Baidu Like are.

Here is the documentation for the Javascript version of the share buttons if that helps:

Andrew Odri
  • 8,868
  • 5
  • 46
  • 55

2 Answers2

33

Hopefully this can help someone in the future; here is how to implement HTML only share/like buttons for Renren, Weibo, and Baidu Like/Space/Forums/Bookmarks:

Renren

As mentioned above, use the following URL format to share a link on Renren:

Weibo

The following URL format will allow you post to your Weibo account, in the same manner as you would for Twitter:

Baidu

Baidu has multiple services that can be posted to; the one relevant to this post is Baidu Like, but I have provided URLs for Baidu Space, Forums, and Bookmarks for reference as well:

To like a link in in the same manner as Facebook/Google +1, using the following URL structure:

I tracked the above URLs down using a packet analyser, and as far as I can tell, Baidu Like has to be called from the referring page, or at the very least, the referring domain. The callback function bd4bb141b does not seem to be specific to any domain or user ID.


Please note that I have not tested the following URLs structures thoroughly:


Also for reference, a good Chinese alternative to FeedBurner is FeedSky.

Andrew Odri
  • 8,868
  • 5
  • 46
  • 55
  • 1
    If Baidu Like fails, you will get the following message: `bdShare.ajax._callbacks.bd4bb141b({"index":0,"count":7,"err":1,"err_msg":"\u60a8\u5df2\u8bc4\u4ef7\uff01\u8c22\u8c22"})`. The error message in Chinese is "您已评价!谢谢", which basically means the request has been noted, but no action has been taken. If Baidu Like succeeds, you will get the following message: `bdShare.ajax._callbacks.bd4bb141b({"index":0,"count":8,"err":0,"err_msg":"ok"})`. – Andrew Odri May 14 '12 at 22:12
  • I found this post very helpful thanks for the info! Facebook sharer.php is deprecated does anyone know if the Weibo share.php is deprecated as well? I can't seem to find a lot of info on it. Thanks! – Jeffpowrs Apr 03 '13 at 18:04
  • I tried to use Weibo but sometimes it works others it does not. Probably it is deprecated too. The problem is that the site is in Chinese. – rtacconi Jun 12 '13 at 14:32
  • @rtacconi I noticed that too; I don't know if this helps, but I noticed it works only when it is called from the actual URL. i.e. If you call it from a testing server, it will detect that the referrer doesn't match and deny the request. – Andrew Odri Jun 25 '13 at 16:06
  • @AndrewOdri it actually works for localhost but not for the actual URL! – rtacconi Jul 20 '13 at 16:43
  • @rtacconi I'm currently trying to use the Weibo share link. It seems to work well, even without specifying an appKey. But I'm testing it from a local test server, so... have you guys experienced any problem with it on a live website? Thanks. – Rorok_89 Oct 10 '13 at 09:37
  • I'm trying to figure out how to set the "source" on the shared post in Weibo, any idea what other parameters weibo/share.php expects? – akhaku Oct 17 '13 at 23:38
  • In 2019, the Weibo link still works, but the one for Renren returns 404 Not Found – plugincontainer Aug 21 '19 at 09:13
3

With my own site (currently) the share button does not show up when using httpS ... but it does with http

Here is the link to the most recent (November 10th, 2015) Weibo share button code generator (scroll to the bottom to get the code):

http://open.weibo.com/sharebutton

WebDev-SysAdmin
  • 269
  • 4
  • 12