【问题标题】:How to get a number of Google Plus +1 for a URL of post如何为帖子的 URL 获得多个 Google Plus +1
【发布时间】:2014-03-24 12:02:36
【问题描述】:

我想为文章帖子的 URL 获取多个 Google+ +1。

例如,我想获得一些 G+ 之类的 Beautydea 杂志。 有没有办法为 Google API 的特定 URL 添加我的 URL 帖子?比如脸书或推特。 这里有一些 Facebook 和 Twitter 具有相同 URL 帖子的示例。

脸书:

https://graph.facebook.com/fql?q=SELECT%20total_count%20FROM%20link_stat%20WHERE%20url=%27http://www.beautydea.it/orly-baked-collezione-smalti-estate-2014/%27

推特:

http://urls.api.twitter.com/1/urls/count.json?url=http://www.beautydea.it/orly-baked-collezione-smalti-estate-2014/

【问题讨论】:

标签: google-plus google-plus-one


【解决方案1】:

如果你在服务器端这样做,你可以只加载按钮的 iframe 引用的 url

https://apis.google.com/u/0/_/+1/fastbutton?usegapi=1&url=http%3A%2F%2Fwww.beautydea.it%2Forly-baked-collezione-smalti-estate-2014%2F

并从 id 为“aggregateCount”的 div 中读取计数。使用这种方法在客户端不走运,因为您无法加载外部 html 页面。

【讨论】:

    【解决方案2】:

    不支持获取 URL 的 +1 计数的 API 方法。不过,您可以为open feature request 加注星标。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-04
      • 2013-01-15
      • 2012-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多