新浪自定义分享:
title:标题,url:分享的链接,appkey:新浪网站接口,pic:分享的图片
[code]
<a href="http://service.weibo.com/share/share.php?title=biaoti&url=http://www.cityofsteam.com/design-dev-journal-doomsday-rendering-discussions&appkey=4121371591&pic=http://www.cityofsteam.com/wp-content/themes/cityofsteamwpnew/images/banner.jpg">新浪自定义分享</a>
[/code]
新浪自定义分享(js):
[code]
shareTSina = function(title,rLink,site,pic){//标题,分享URL/appkey/图片地址。
window.open(‘http://service.weibo.com/share/share.php?title=’+encodeURIComponent(title)+’&url=’+encodeURIComponent(rLink)+’&appkey=’+encodeURIComponent(site)+’&pic=’+encodeURIComponent(pic),’_blank’,’scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes’);
};
[/code]
facebook自定义分享:
name:就是网站title
可以添加 display参数让界面全屏显示: &display=popup
api文档地址:https://developers.facebook.com/docs/reference/dialogs/feed/
[code]
<a href="http://www.facebook.com/dialog/feed?app_id=246398722099129&link=http://www.cityofsteam.com/design-dev-journal-doomsday-rendering-discussions&picture=http://www.cityofsteam.com/wp-content/themes/cityofsteamwpnew/images/banner.jpg&name=111111111&caption=2222222222222&description=333333333333333333&redirect_uri=http://www.cityofsteam.com">facebook自定义分享</a>
[/code]
谷歌+自定义分享:
[code]
<img itemprop="image" src="http://www.cityofsteam.com/wp-content/themes/cityofsteamwpnew/images/banner.jpg" />
<br />
<br />
<a href="https://plus.google.com/share?url=http://www.cityofsteam.com/test/testfacebook.html" onclick="javascript:window.open(this.href,
”, ‘menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600’);return false;"><img
src="https://www.gstatic.com/images/icons/gplus-64.png" alt="Share on Google+"/></a>
[/code]
谷歌+更多自定义相关:
https://developers.google.com/+/plugins/snippet/?hl=zh-cn