参考链接:
https://www.cnblogs.com/buhuixiedaima/p/5062680.html
http://blog.csdn.net/einsteingauss/article/details/50629213
新浪微博:
http://service.weibo.com/share/share.php?url=count=表示是否显示当前页面被分享数量(1显示)(可选,允许为空)
&url=将页面地址转成短域名,并显示在内容文字后面。(可选,允许为空)
&appkey=用于发布微博的来源显示,为空则分享的内容来源会显示来自互联网。(可选,允许为空)
&title=分享时所示的文字内容,为空则自动抓取分享页面的title值(可选,允许为空)
&pic=自定义图片地址,作为微博配图(可选,允许为空)
&ralateUid=转发时会@相关的微博账号(可选,允许为空)
&language=语言设置(zh_cn|zh_tw)(可选)
腾讯微博:
http://share.v.t.qq.com/index.php?c=share&a=index
&title=默认的文本内容或RICH化转播时的消息体标题,RICH化时最多15个全角字符的长度
&url=转播页的url
& pic=需要转播的图片url,多张以|连接
&appkey=填写正确的appkey,转播后将显示该key的来源
&line1=消息体第一行的文字,最多15个全角字符的长度
&line2=消息体第二行的文字,最多15个全角字符的长度
&line3=消息体第三行的文字,最多15个全角字符的长度
API文档:http://dev.t.qq.com/websites/useshare?explain=1
QQ空间
http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?
url=分享的网址
&desc=默认分享理由(可选)
&summary=分享摘要(可选)
&title=分享标题(可选)
&site=分享来源 如:腾讯网(可选)
&pics=分享图片的路径(可选)
API文档:http://connect.qq.com/intro/share/
比如:<a href="javascript:void(0);" οnclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));return false;" title="分享到QQ空间"><img src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/app_share/qz_logo.png" alt="分享到QQ空间" /></a>
分享到豆瓣
http://shuo.douban.com/!service/share?
image=分享图片
&href=分享网址
&name=分享标题
&text=分享内容
API文档:http://open.weixin.qq.com/document/api/timeline/?lang=zh_CN
分享到QQ群、QQ好友
<a class="lqq" target="_blank" href="javascript:void(0);" οnclick="window.open('http://connect.qq.com/widget/shareqq/index.html?url=' + encodeURIComponent(document.location.href) + '
&desc=邀请详情&title=标题&summary=简介&pics=&flash=&site=邀请人或网站&callback=" title="QQ登录">qq</a>
补充如下:
1、新浪微博
<a href="http://v.t.sina.com.cn/share/share.php?url=http://www.shao-ming.com&title="分享内容"" target="_blank">新浪微博</a>
2、腾讯微博
<a href="http://v.t.qq.com/share/share.php?url=http://www.shao-ming.com&title="分享内容"" target="_blank">腾讯微博</a>
3、开心网
<a href="javascript:window.open("http://www.kaixin001.com/repaste/share.php?rtitle="+encodeURIComponent(document.title)+"&rurl="+encodeURIComponent(document.location.href)+"&rcontent=");void(0)">开心网</a>
或者用
<a href="http://www.kaixin001.com/repaste/share.php?rurl=http://www.shao-ming.com&rcontent=http://www.baidu.com&rtitle=kaixin" target="_blank">开心网</a>
4、豆瓣网
<a href="javascript:window.open("http://www.douban.com/recommend/?url="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(document.title));void(0)">豆瓣</a>
或者用
<a href="http://www.douban.com/recommend/?url=http://www.shao-ming.com&title=douban" target="_blank">豆瓣</a>
5、人人网
<a href="javascript:window.open("http://share.renren.com/share/buttonshare.do?link="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(document.title));void(0)">人人网</a>
或者用
<a href="http://share.renren.com/share/buttonshare.do?link=http://www.shao-ming.com" target="_blank">人人网</a>
6、百度贴吧
<a href="http://tieba.baidu.com/f/commit/share/openShareApi?url=http://www.shao-ming.com&title=hello&desc=&pic=" target="_blank">百度贴吧</a>
7、QQ好友
<a href="http://connect.qq.com/widget/shareqq/index.html?title=qqhaoyou&url=http://www.shao-ming.com&desc=还不错哦&pics=&site=优酷" target="_blank">QQ好友</a>
8、QQ空间
<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http://www.shao-ming.com" target="_blank">QQ空间</a>
9、腾讯朋友
<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?to=pengyou&url=http://www.shao-ming.com" target="_blank">腾讯朋友</a>
10、百度收藏
<a href="javascript:window.open("http://cang.baidu.com/do/add?it="+encodeURIComponent(document.title.substring(0,76))+"&iu="+encodeURIComponent(location.href)+"&fr=ien#nw=1","scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes"); void 0">百度搜藏</a>
11、优酷空间
<a href="http://i.youku.com/u/share/?url=http://www.shao-ming.com&content="分享内容"" target="_blank">优酷空间</a>
12、搜狐微博
<a href="http://t.sohu.com/third/post.jsp?content=utf-8&url=http://www.shao-ming.com&title=souhu" target="_blank">搜狐微博</a>
13、MSN
<a href="http://profile.live.com/badge/?url=http://www.shao-ming.com&Title=msn" target="_blank">MSN</a>
14、猫扑
<a href="http://tt.mop.com/share/shareV.jsp?title=moptietie&pageUrl=http://www.shao-ming.com" target="_blank">MOP贴贴</a>
15、网易微博
<a href="http://t.163.com/article/user/checkLogin.do?link=http://www.shao-ming.com" target="_blank">网易微博</a>
16、QQ书签
<a href="javascript:window.open("http://shuqian.qq.com/post?from=3&title="+encodeURIComponent(document.title)+"&uri="+encodeURIComponent(document.location.href)+"&jumpback=2&noui=1","favit","width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes");void(0)">QQ书签</a>
17、GOOGLE书签:
<a href="javascript:window.open("http://www.google.com/bookmarks/mark?op=add&bkmk="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(document.title));void(0)">Google</a>
18、Twitter
<a href="javascript:window.open("http://twitter.com/home?status="+encodeURIComponent(document.location.href)+" "+encodeURIComponent(document.title));void(0)">Twitter</a>
19、Facebook
<a class="fav_facebook" rel="nofollow" href="javascript:window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(document.location.href)+"&t="+encodeURIComponent(document.title));void(0)">Facebook</a>
20、Delicious书签:
<a href="javascript:window.open("http://del.icio.us/post?url="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(document.title)+"¬es=");void(0)">Delicious</a>
21.微信
https://api.addthis.com/oexchange/0.8/forward/wechat/offer?url=www.baidu.com&title=百度一下