How to Use The Google Plus Share Button
Google has been very busy this week with their Drive offering, however something that flew in under the radar is their new Google Plus Share Button.
Previously we have had the ability to +1 a page or post, but now site owners can allow visitors to share the posts with their friends and contacts.
The core difference between the +1 and the share then? The Google +1 is more of an endorsement of the material, however it doesn’t actually share it onto your stream. The Google Plus Share function will prompt the users which of their circles they want to share with, then include it in their stream.
So, on to the fun part. Implementation.
Here is an example of the simple button:
This is a general 20px button used to share content. Much like the +1 buttons, these will change colour once used.
<script src="https://apis.google.com/js/plusone.js"></script><g:plus action="share"></g:plus>
Here is the standard share code
<g:plus action="share" ...></g:plus>
HTML5 Div version
<div class="g-plus" data-action="share" ... ></div>
For more tags and options, visit:
About Aidan Bradley
Aidan Bradley is an Enterprise Solutions Architect with a keen interest in emerging technologies and Business Consulting. His passions include Web Design and Development, and he is an avid supporter of the Australian Start-Up community.