java - 无法从 Google Plus 访问用户的个人资料

标签 java oauth-2.0 google-plus scribe

我正在使用 Scribe-Java 连接到 Google 并使用 OAuth2。我能够验证我的应用程序并获得用户的许可,但是当我尝试访问 userinfo 以外的任何内容时,我收到此异常。

403

{

"error": {

  "errors": [
            {

          "domain": "usageLimits",
           "reason": "accessNotConfigured","message": "Access Not Configured"

            }

            ],

  "code": 403,

"message": "Access Not Configured"

     }

}

我已将我的应用程序范围设置为 https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile 和要访问用户的个人资料,我正在使用此网址:

https://www.googleapis.com/plus/v1/people/{userid}/activities/public

你能告诉我我做错了什么吗?我需要在此处使用其他范围来访问配置文件吗?

最佳答案

1) 访问 Google API 控制台: http://code.google.com/apis/console

2) 转到“服务”页面。

3) 将 Google+ API 切换为开启以启用它

关于java - 无法从 Google Plus 访问用户的个人资料,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11082550/

相关文章:

android - 如何在 Android 中获取 Google+ 好友

java - Spring Mongo 异常 - 不允许为 id 属性自定义字段名称!不考虑自定义名称

java - 我需要有关成功连接到带有 galaxy s3 的 zephyr HXM 蓝牙设备的建议

java - 如何将文件保存到类路径

java - 在 Java Swing 中,当工作流程非线性时如何在 JPanel 之间切换?

php - 无法使用 Oauth Google 发送 PHPMailer

asp.net-mvc - 在 .NET 中使用 FB Connect/Google OAuth 登录

gwt - 在 GWT 中嵌入 google-plus

php - (400) 使用 Google API PHP 客户端和 Admin SDK 的错误请求

ios - 在 Xcode 4.5 中打开 Google+ 应用程序