Yes, we should make it easy for visitors to share content. It is handy and in many cases it allows us to pre-fill the share text. Most of the time, we would use a WordPress Plugin or a JavaScript Solution, instead of developing our own share buttons. However, in many cases, an external solution is overkill

Also, there are cases when you don’t want to add some plugin to your blog or to the website you’re building simply to have social sharing links on your site.

You might also want to be in full control of your design, in which case you would manually arrange the Social Sharing buttons and make them work.

In cases like these, it’s handy to have a set of commonly used social links.

So, here they are.

Facebook

https://www.facebook.com/sharer/sharer.php?u={fullUrl}

Twitter

https://twitter.com/intent/tweet?url={fullUrl}&text={socialTitle}

Documentation

Google Plus

https://plus.google.com/share?url={fullUrl}

Documentation

Linked In

https://www.linkedin.com/cws/share?url={fullUrl}

Pinterest

https://pinterest.com/pin/create/bookmarklet/?media={socialImage}&url={fullUrl}&is_video=false&description={socialTitle}

Please note that the best practice is to include open graph protocol tags on the details of the page you’re planning to share because most social media sites know how to read and use those tags to display descriptions and images when sharing content.

Here’s an example taken from The Open Graph protocol page:

<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
...
</head>
...
</html>

That’s it for this post, thanks for visiting and feel free to share.