人人网、微博和百度喜欢按钮仅使用 HTML(无 Javascript)



我正在开发一个将在中国销售的网站,我想知道是否有一种方法可以仅使用HTML为人人网(类似于Facebook(,微博(类似于Twitter(和百度喜欢(类似于Google的+1(创建"共享"按钮。

例如,对于Facebook,Twitter和Google的+1,您将使用以下方法:

  • http://twitter.com/share?url=http://example.com&text=Description
  • http://www.facebook.com/sharer.php?u=http://example.com
  • https://plusone.google.com/_/+1/confirm?hl=en&url=http://example.com

我知道人人公司使用以下方法:

  • http://share.renren.com/share/buttonshare.do?link=http://example.com&title=Description

但是,我很想知道微博和百度喜欢的HTML专用URL是什么

以下是共享按钮的 Javascript 版本的文档,如果有帮助的话:

  • http://wiki.dev.renren.com/wiki/Xn:share-button
  • http://open.weibo.com/sharebutton
  • http://share.baidu.com/like/get-codes

希望这可以帮助将来的人; 以下是为人人网、微博和百度点赞/空间/论坛/书签实现仅限HTML的分享/喜欢按钮的方法:

人网

如上所述,使用以下URL格式在人人网上共享链接:

  • http://share.renren.com/share/buttonshare.do?link=http://example.com&title=Description

微博

以下URL格式将允许你以与Twitter相同的方式发布到你的微博帐户:

  • http://service.weibo.com/share/share.php?url=http://example.com&appkey=&title=Description&pic=&ralateUid=&language=zh_cn

百度

百度

有多种服务可以发布;与这篇文章相关的是百度喜欢,但我还提供了百度空间、论坛和书签的 URL 以供参考:

要以与Facebook/Google +1相同的方式喜欢链接,请使用以下URL结构:

  • http://like.baidu.com/set?buttontype=small&cb=bdShare.ajax._callbacks.bd4bb141b&index=0&url=http://example.com

使用数据包分析器跟踪了上述URL,据我所知,百度喜欢必须从引用页面调用,或者至少是从引用域调用。回调函数bd4bb141b似乎并不特定于任何域或用户 ID。


请注意,我还没有彻底测试以下 URL 结构:

  • 要在百度空间上分享链接,请使用以下 URL 结构:http://apps.hi.baidu.com/share/?url=http://example.com&title=Description
  • 要在百度贴吧(论坛(上分享链接,请使用以下 URL 结构:http://tieba.baidu.com/i/app/open_share_api?link=http://example.com
  • 要保存指向百度仓(书签(的链接,请使用以下 URL 结构:http://cang.baidu.com/do/add?it=Description&iu=http://example.com

另外供参考的是,FeedBurner的一个很好的中文替代品是FeedSky。

使用我自己的网站(目前(使用 httpS 时共享按钮不显示......但它与HTTP有关

以下是最新(2015年11月10日(微博分享按钮代码生成器的链接(滚动到底部以获取代码(:

http://open.weibo.com/sharebutton

最新更新