Share using Google Plus (Google+) in Php

#Share using Google Plus (Google+) in Php

$url = URL_OF_YOUR_SHARING_PAGE


<div class="gooogle-share" data-height="24" data-action="share" data-href="<?=$url; ?>" >

<a href="https://plus.google.com/share?url=<?=$url; ?>" 

   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>

</div>

Resources:
https://developers.google.com/+/web/share/

Leave a Comment