Social media sharing codes)

Source: Internet
Author: User
Tags urlencode

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 SEO experts recommend. there are using 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"></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"></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;"></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"></a><!--Digg --><a href="http://www.digg.com/submit?phase=2&url=<?php echo $current_url; ?>" target="_blank"></a><!--Tumblr--><a href="http://www.tumblr.com/share?v=3&u=<?php echo $current_url; ?>&t=<?php echo urlencode($title); ?>" target="_blank"></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"></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;"></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"></a>

The 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"></a>

The 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"></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"></a>

The 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 shoshould 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.