渲染G +分享按钮不起作用?

问题描述 投票:0回答:1

实际上我不太确定G +是否还活着。但是我的网页需要提供这样一个按钮,我可以轻松地谷歌从官方Google文档页面(https://developers.google.com/+/web/share/#example-async-defer)中找到这段代码:

<html>
<head>
<title>Share Demo: Deferred execution with language code</title>
<link rel="canonical" href="http://www.example.com" />
</head>
<body>
<g:plus action="share"></g:plus>

<script>
  window.___gcfg = {
    lang: 'en-US',
    parsetags: 'onload'
  };
</script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
</body>
</html>

但它没有工作,没有任何渲染。我几乎认为它只是死亡的信号。是的G +死了,不是吗?奇怪的是,共享链接示例仍然部分工作(它是部分的,因为它似乎无法加载我的共享链接,总是报告无效链接):

<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>
google-plus
1个回答
1
投票

不再支持Google+分享按钮。

Web集成(例如插件和交互式帖子)已停止服务。

https://developers.google.com/+/integrations-shutdown

© www.soinside.com 2019 - 2024. All rights reserved.