Google plus insert activity on stream

对着背影说爱祢 提交于 2019-12-03 17:09:18

Couple of things to verify first:

  1. You are using a Google Apps domain. This API does not work for regular Google+ users.
  2. You enabled the Google+ Domains API in the Google APIs Console where you created your client ID. It is easy to miss the Google+ Domains API and accidentally enable the Google+ API instead.
  3. Your Google App domain must have Google+ enabled by the Administrator.
  4. The user that you are acting on behalf of either through the standard OAuth flow or through domain-wide delegation has created a Google+ profile.

Next: You cannot use the plus.login scope with the Domains API. I believe you also need to drop the userinfo.* scopes. See the full list of Google+ Domains API scopes.

Also, I believe your scopes are being defined incorrectly, I believe they need to use their full URIs:

google_scope = "https://www.googleapis.com/auth/plus.me,
                https://www.googleapis.com/auth/plus.media.upload,
                https://www.googleapis.com/auth/plus.profiles.read,
                https://www.googleapis.com/auth/plus.stream.read,
                https://www.googleapis.com/auth/plus.stream.write,
                https://www.googleapis.com/auth/plus.circles.read,
                https://www.googleapis.com/auth/plus.circles.write"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!