如何将内容从我们的网站分享到google plus
我像这样试过了
<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();" >在这里我不能分享来自我的网站的内容。这是怎么可能的呢?我想要共享内容(示例: hello)到具有共享功能的goggle
发布于 2013-04-08 20:35:39
是。您可以粘贴应用程序中的内容,您必须将其设置为默认数据。https://developers.google.com/+/web/share/interactive#button_attr_calltoactionurl
这里没什么可做的..。
只需在开发者部分创建一个google plus应用程序。然后粘贴以下部分
<button
class="g-interactivepost"
data-contenturl="https://plus.google.com/pages/"
data-contentdeeplinkid="/pages"
data-clientid="xxxxx.apps.googleusercontent.com"
data-cookiepolicy="single_host_origin"
data-prefilltext="Engage your users today, create a Google+ page for your business."
data-calltoactionlabel="CREATE"
data-calltoactionurl="http://plus.google.com/pages/create"
data-calltoactiondeeplinkid="/pages/create">
Tell your friends
</button>然后更改data- client id..现在,它将按照您的期望工作。享受:)
发布于 2012-05-31 19:33:24
谷歌已经有一段时间没有带上分享按钮了。你可以在他们的开发者页面上找到这个。[Here]
将生成的代码粘贴到您的网页上,然后API会自动接收到该页面的链接。
https://stackoverflow.com/questions/10832670
复制相似问题