【问题标题】:Rendering G+ share button is not working?渲染 G+ 分享按钮不起作用?
【发布时间】:2019-08-21 03:20:27
【问题描述】:

实际上,我不太确定 G+ 是否还活着。但是我的网页需要渲染这样一个按钮,我可以很容易地在谷歌官方文档页面(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】:

    不再支持 Google+ 分享按钮。

    插件和交互式帖子等网络集成已停止提供服务。

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

    【讨论】:

    • 谢谢,要挖回官方声明不容易。
    猜你喜欢
    • 2013-05-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多