Shared publicly  - 
 
Amir Esmann originally shared:
 
*Re-sharing a Blog post with your circles on google+

Today got waked up by +Gabriel Vasile who mention a post from DutchCowboy +Arvid Bux

Turn a Google Search query into a Google+ post

Perform a Google Search query, scroll down to the bottom of the page and you will see the ability to directly share your search query on Google+. The share button also changed to an ask button.
https://plus.google.com/u/0/112433233162542061134/posts/bHmaXjM1yv6

ended his post with "Shouldn't be that hard to implement, right?"

So i take a deeper look in these nice new Google Sharebox feature
There is already a Google sharebox feature for Blogger user but how to implement it in a Wordpress Blog or any other webpage . Finally its not that hard

1) First connect your blogger account with your Google+ Profile
or make one even if you dont plane to use it.

2) Make one post if you dont have one

3) Open the Chrome Developer Tools and Console view

Dont get confused by the the stuff below its just the long link you will need

the Console will show you something like that


https://plusone.google.com/_/sharebox/dialog? claimedOrigin=http%3A%2F%2Fwww.blogger.com&
url=http%3A%2F%2Fcapsulefilm.blogspot.com%2F2012%2F02%2Fsomething-to-discover.html&
prm=url&
susp=true&
jsh=m%3B%2F_%2Fapps-static%2F_%2Fjs%2Fgapi%2F__features__%2Frt%3Dj%2Fver%3Do-pVTZ6YDmE.en.%2Fsv%3D1%2Fam%3D!oH-BLYd0qO-I0PAIGg%2Fd%3D1%2F#id=I2_1328179450488&
parent=http%3A%2F%2Fwww.blogger.com&
rpctoken=XXXXXXXX&
_methods=_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart

*Some cleaning and url adopting
change the urls to your Blog in my case blog.metaprime.at*



https://plusone.google.com/_/sharebox/dialog? claimedOrigin=http://www.blogger.com&
url=http://blog.metaprime.at/index.php&
prm=url&
susp=true&
jsh=m%3B/_/apps-static/_/js/gapi/__features__/rt%3Dj/ver%3Do-pVTZ6YDmE.en./sv%3D1/am%3D!oH-BLYd0qO-I0PAIGg/d%3D1/#id=I2_1328179450488&
parent=http://blog.metaprime.at&
_methods=_ready%2C_close%2C_close%2C_resizeMe%2C_renderstart

Now we add the Wp stuff the_permalink() dont forget to insert your url and make a nice button Link and Insert into your WP theme where ever you want your G+ share.


https://plusone.google.com/_/sharebox/dialog? claimedOrigin=http://www.blogger.com&
url=<?php the_permalink() ?>&
prm=url&
susp=true&
jsh=m%3B/_/apps-static/_/js/gapi/__features__/rt%3Dj/ver%3Do-pVTZ6YDmE.en./sv%3D1/am%3D!oH-BLYd0qO-I0PAIGg/d%3D1/#id=I2_1328179450488&
parent=http://blog.metaprime.at&
_methods=_ready%2C_close%2C_close%2C_resizeMe%2C_renderstart
Tested the sharebox link with different profiles and it should work, just add a nice share image button to it thats it for the beginning. Next step would be a nice Wordpress plugin to simple activate it without any coding. You can tray the link just to prove if it works.

Below just a screenshot how the g+ share-box pop up



-------------------------------------------------------------------------------------------------------------------------
Some nasty explanation of the link just ignore that part

Googlel Share Link legend
ClaimedOrigin: blogger.com // must stay!

pem : perma Url that get shared

Susp=True // must stay true

Jsh= JavaScript Shell + APP ID

parent= your domain

_Methode= some additional functions for the sharebox
resizeable / Open or closed

Susp=true ???

RPCTOKEN
The rpcToken is used to secure the cross-domain communication between the iframe and the parent page. Note that this security check is skipped if the iframe is running on the same domain as the parent page.
1
Add a comment...