【问题标题】:Google Plus Interactive Share posts not showing on feedGoogle Plus Interactive Share 帖子未显示在 Feed 中
【发布时间】:2013-09-10 09:34:00
【问题描述】:

我在 Google+ 互动分享中尝试了多种方法。它的作用:

  • 显示 Google+ 分享屏幕
  • 显示您当前共享的链接和文本
  • 让你点击“分享”

一旦完成,屏幕就会消失,让用户认为它已经完成。但是当我转到我的 Google+ 提要时,什么都没有显示,甚至在“应用”选项卡上也没有。有谁知道我做错了什么?

我什至用谷歌自己的例子进行了测试:https://developers.google.com/+/web/share/interactive

<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>

这甚至行不通。以前有人遇到过这个问题吗?

【问题讨论】:

  • 您能在浏览器中检查 JavaScript 控制台,并在其中发布您看到的任何错误吗?

标签: php javascript google-api google-plus


【解决方案1】:

“data-contenturl”和“data-calltoactionurl”必须相同。这就是它没有发布的原因。

【讨论】:

    【解决方案2】:

    “data-contenturl”和“data-calltoactionurl”必须具有相同的主机和协议。 在您的情况下,同时使用 HTTPS 或 HTTP。不同的路径都可以。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-10
      • 2012-02-27
      • 1970-01-01
      相关资源
      最近更新 更多