首页 > 解决方案 > 无法使用普通 gmail 帐户在 google plus 页面上发布数据

问题描述

我使用 g 套件帐户创建了一个应用程序。使用 google 客户端 API,我可以使用我的 g 套件帐户在 google plus 页面上发布数据。没关系。但我需要在 google plus page 普通 gmail 帐户上发布数据。当我尝试使用我的正常 test.gmail.com 发布数据时。它提供了以下错误。

(出了点问题:调用 POST https://www.googleapis.com/plusDomains/v1/people/me/activities时出错 :(403)禁止访问)。但是 Hootsuite 网站我可以使用普通的 gmail 帐户在 google plus 上发布数据。我是否需要购买任何其他类似(g 套件帐户)。

参考链接:-

https://github.com/google/google-api-php-client

我的范围:

$client>addScope("https://www.googleapis.com/auth/plus.circles.read");
$client->addScope("https://www.googleapis.com/auth/plus.circles.write");
$client->addScope("https://www.googleapis.com/auth/plus.login");
$client->addScope("https://www.googleapis.com/auth/plus.me");
$client->addScope("https://www.googleapis.com/auth/plus.media.upload");
$client->addScope("https://www.googleapis.com/auth/plus.profiles.read");
$client->addScope("https://www.googleapis.com/auth/plus.stream.read");
$client->addScope("https://www.googleapis.com/auth/plus.stream.write");
$client->addScope("https://www.googleapis.com/auth/activity");

还是我应该使用更多的范围?

标签: phpgoogle-apigoogle-api-php-clientgoogle-api-clientgoogle-client

解决方案


推荐阅读