【问题标题】:how to share message to google plus without the requisite of "Google Plus" app installed in device如何在设备中无需安装“Google Plus”应用程序的情况下将消息分享给 google plus
【发布时间】:2012-12-24 11:22:34
【问题描述】:

我已经使用 Auth 2.0 和使用原生 Share(+1) 按钮集成了 google plus,就像在 Google Plus Developers 上一样。代码运行良好(登录、获取个人资料和搜索好友)。

但我现在想在 google plus 上分享文字。

按照谷歌加安卓开发者的建议使用分享按钮的第二种方式在分享消息的情况下工作良好。

但我想在不使用 Intent 或 ShareCompat 等的情况下将消息分享给 google plus 的用户。 有什么办法,因为这一切都需要在设备中安装 Google Plus 应用程序...?

有没有什么方法可以做到这一点,而不需要在设备中安装 google plus 应用程序...?

问候,

阿皮特

【问题讨论】:

  • 如果你从我发布的答案中得到你的问题的答案,请接受它。

标签: android google-plus


【解决方案1】:

您可以使用 Google+ 分享表单的路径明确分享链接。例如:

https://plus.google.com/share?url=http://stackoverflow.com

将分享指向 Stack Overflow 的链接。

【讨论】:

    【解决方案2】:

    google API 不允许像 facebook 和 twitter api 这样的写访问。您必须安装 google 应用程序。

    他们说:

    注意:Google+ API 目前提供对公开的只读访问权限 数据。所有 API 调用都需要 OAuth 2.0 令牌或 API 密钥。

    Google plus API 目前提供只读访问权限。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-22
      相关资源
      最近更新 更多