May 31, 2012

How to share content from our site to google plus

Question by keerthi

How to share content from our site to google plus

I tried it like this

<a href="javascript:void(0);" onclick="window.open('https://plus.google.com/share?url=<?php echo urlencode('http://example.com');?>&via=example', 'Share on Google Plus', 'width=600,height=400,left=450').focus();" >

Here I can not share content from my site. How it is possible with this?
I want to share content (example: hello) to goggle plus with sharing capability

Answer by Starx

Its been some time since the Google has brought its share button. You can find this, on their developer’s page. [Here]

Paste the generated code on your web page, then link of the page will be automatically received by the API.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!