微博一键分享主要通过对指定 URL 添加各种参数来实现;

微博一键分享主要通过对指定 URL 添加各种参数来实现;也可以用在线生成器自动生成。
示例:
搜狐微博一键分享 URL,只需三个参数: http://t.sohu.com/third/post.jsp?url=http://ma3310.vicp.net&title=搜狐一键分享真好用!&content=utf-8
网易微博一键分享 URL: http://t.163.com/article/user/checkLogin.do?source=网易科技&info=参数source貌似需要申请di...可是如何申请捏,要送红包么?
passit.cn 生成的代码,贴在页面上就能用:

Javascript代码 复制代码 收藏代码
  1. <script type="text/javascript">  
  2. bookmark_service_div="bookmark,baidu,douban,sohuweibo,taojianhu,hexun,qqkj,yahoo,tianysq,more";  
  3. bookmark_service="sinaweibo,163weibo,qqweibo,kxzt,xnzt,more";</script>  
  4. <div class="passit_barDiv"><a class="passit_default" href="http://www.passit.cn/bookmark.html" target="_blank"></a></div>  
  5. <script type="text/javascript">  
  6. //生成页面的时候需要自定义这些变量  
  7. var passit_title = "";//自定义分享标题,删除和留空表示使用默认  
  8. var passit_url = "";//自定义分享网址,删除和留空表示使用默认  
  9. var passit_content= "";//自定义分享内容,删除和留空表示使用默认  
  10. </script>  
  11. <script type="text/javascript" src="http://www.passit.cn/js/passit_bar_big_new.js?pub=4896&simple=1" charset="UTF-8"></script>  
<script type="text/javascript">
bookmark_service_div="bookmark,baidu,douban,sohuweibo,taojianhu,hexun,qqkj,yahoo,tianysq,more";
bookmark_service="sinaweibo,163weibo,qqweibo,kxzt,xnzt,more";</script>
<div class="passit_barDiv"><a class="passit_default" href="http://www.passit.cn/bookmark.html" target="_blank"></a></div>
<script type="text/javascript">
//生成页面的时候需要自定义这些变量
var passit_title = "";//自定义分享标题,删除和留空表示使用默认
var passit_url = "";//自定义分享网址,删除和留空表示使用默认
var passit_content= "";//自定义分享内容,删除和留空表示使用默认
</script>
<script type="text/javascript" src="http://www.passit.cn/js/passit_bar_big_new.js?pub=4896&simple=1" charset="UTF-8"></script>

参考: 各种分享平台汇总:http://www.mhtml5.com/2011/03/704.html 实用分享代码:http://www.koryi.net/web/694.html
微博分享(一键转发) api 文档: http://open.t.sina.com.cn/wiki/index.php/ShareCode http://open.t.sohu.com/en/%E4%B8%80%E9%94%AE%E5%88%86%E4%BA%AB%E5%88%B0%E6%90%9C%E7%8B%90%E5%BE%AE%E5%8D%9A http://open.t.qq.com/apps/share/explain.php http://www.wbto.cn/share.html
微博分享工具在线生成器: http://www.passit.cn/ http://www.bshare.cn/ http://www.addthis.com/

原文地址:https://www.cnblogs.com/dotfun/p/3465667.html