Social media is becoming a very important traffic source to one website. We can see social media share buttons or links in most websites ranging from news website to personal
blogs. It is also a very important optimization area where many SEO experts recommend. There are many social medias we can share our links to such as Facebook and Twitter. Most of these website provide share button for us to easily integrate them into our
websites, but these buttons usually have default styles(fixed size, fixed images). If we want to customize these buttons so that they conform to our website design gracefully, we need to know the links these website use to share links on them. We summarize
some of them here.
<!-- Facebook--> <br><a href="http://www.facebook.com/share.php?u=<?php echo $current_url; ?>" target="_blank"><img src="/images/icons/share/32/facebook.png" alt="Share on Facebook" title="Share on facebook"/></a>
<!--Twitter share-->
<a href="http://twitter.com/home?status=<?php echo urlencode($title).' '.$current_url; ?>" title="Click to share this post on Twitter" target="_blank"><img src="/images/icons/share/32/twitter.png" alt="Share on Twitter" title="Share on twitter"></a>
<!--Google +1 Button -->
<a href="https://plus.google.com/share?url=<?php echo urldecode($current_url); ?>" onclick="javascript:window.open(this.href, '_blank','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><img src="/images/icons/share/32/google_plus.png" title="Share on Google+" alt="Share on Google+"/></a>
<!-- Reddit -->
<a href="http://reddit.com/submit?url=<?php echo $current_url; ?>&title=<?php echo urlencode($article_title); ?>" title="Share on Reddit" target="_blank"><img src="/images/icons/share/32/reddit.png" alt="Share on Reddit"/></a>
<!--Digg -->
<a href="http://www.digg.com/submit?phase=2&url=<?php echo $current_url; ?>" target="_blank"><img src="/images/icons/share/32/digg.png" alt="Share on Digg" title="Share on Digg"/></a>
<!--Tumblr-->
<a href="http://www.tumblr.com/share?v=3&u=<?php echo $current_url; ?>&t=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/32/tumblr.png" alt="Share on Tumblr" title="Share on Tumblr" /></a>
<!--Linkedln share-->
<a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo $current_url; ?>&title=<?php echo $title; ?>&source=<?php echo $current_url; ?>" target="_blank"><img src="/images/icons/share/32/linkedin.png" title="Share on linkedln" /></a>
<!--Delicious share-->
<a href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent('<?php echo $current_url; ?>')+'&title='+encodeURIComponent('<?php echo $title; ?>'),'delicious', 'toolbar=no,width=550,height=550'); return false;"><img src="/images/icons/share/32/delicious.png" alt="Delicious" title="Share on delicious" /></a>
If your have readers from China, you can also add below links:
<!--Sina Weibo -->
<a href="http://v.t.sina.com.cn/share/share.php?url=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/sina-weibo.png" title="Share on Weiboo" alt="Share on Weibo" /></a>
Above code is to share the link to the most famous Twitter like platform in China. This website provides more functions than Twitter. Learn from Twitter, better than Twitter.
<!-- QZone -->
<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/qzone.png" title="Share on QZone" alt="Share on QZone"/></a>
Above code is to share the link to the most widely used social platform in China.
!-- Renren -->
<a href="http://share.renren.com/share/buttonshare?link=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/renren.png" title="Share on Renren" alt="Share on Renren"/></a>
Above code is to share the link to the most notorious Facebook like platform in China. It steals almost every idea from Facebook. You may know how to use this website even
you don't know Chinese.
<!--Tencent Weibo -->
<a href="http://v.t.qq.com/share/share.php?url=<?php echo $current_url; ?>&title=<?php echo urlencode($title); ?>" target="_blank"><img src="/images/icons/share/tencent_weibo.png" title="Share on Tencent Weibo" alt="Share on Tencent Weibo"/></a>
Above code is to share the link to another Twitter like platform in China. Don't know why people need so many Twitters in China.
For all the above links, you need to modify the url and title accordingly. Also the images should be replaced with your own customized images, if you don't want to use images, you can use text instead. But then why do you want to customize them if you don't
want to use images.
分享到:
相关推荐
win8 mediaplayer 默认是不能支持很多视频和音乐格式的,win8codes解码几乎所有的格式。
IBM+pSeries+Codes+Search+p系列错误代码查询器
Windows Message Codes(系统消息代码)
STC编码,信息隐藏矩阵编码代码实现
《Cracking Codes With Python》书籍示例代码,enjoy it!
C++ CodesC++ CodesC++ CodesC++ CodesC++ CodesC++ CodesC++ CodesC++ Codes
我们还展示了CoDesc数据集在两个流行任务中的有用性:自然语言代码搜索和源代码摘要。 CoDesc资料集 在进行了初始设置之后,我们的数据集将与代码搜索任务和代码摘要任务的预处理数据一起下载到data/文件夹中。 我们...
iso_country_codes, 提供 ISO 3166 1国家代码/名称和 ISO 4217货币的ruby 库 iso_country_codes 描述:为国家提供ISO代码,名称和货币。插件功能:按 alpha-2,alpha-3 或者数字代码查找通过 NAME,货币代码或者呼叫...
由贴片器件代码查找型号 SMD-codes Active SMD semiconductor components marking codes
Fountain codes are record-breaking sparse-graph codes for channels with erasures, such as the internet, where files are transmitted in multiple small packets, each of which is either received without ...
codes.zipcodes.zipcodes.zipcodes.zip
This book is intended to introduce space-time coding and multiantenna systems. The endeavor is to impart a working knowledge of the subject not just for students and researchers but for the entire ...
Introduction to LDPC codes
DES3200实验箱示例源代码Codes 嵌入式
是用MATLAB编写的有限元法教材,里面给出了很多可以参考例子。
Low Density Parity Check Codes Robert G. Gallager 1963
codes
Wu Yufei的经典的turbo codes的matlab程序
Java programming codes
ACR122U Sample Codes_C 读卡器示范代码