Google-api-php-client: Legacy People API has not been used in project

Created on 14 Dec 2019  路  9Comments  路  Source: googleapis/google-api-php-client

Google OAuth shows below error
403 - Legacy People API has not been used in project before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project= then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

needs more info question

Most helpful comment

Did you visit the linked page and enable the API as instructed?

Yes, but it shows as below
"Failed to load."
"There was an error while loading /apis/api/legacypeople.googleapis.com/overview?project=. Please try again."

All 9 comments

Did you visit the linked page and enable the API as instructed?

Did you visit the linked page and enable the API as instructed?

Yes, but it shows as below
"Failed to load."
"There was an error while loading /apis/api/legacypeople.googleapis.com/overview?project=. Please try again."

Hi @thameemk612,

According to the documentation, the legacy People API cannot be enabled for new projects. It is automatically available for users of the now shutdown Google+ APIs.

You can use the People API v1 instead. Click here to enable the API.

Hi @thameemk612,

According to the documentation, the legacy People API cannot be enabled for new projects. It is automatically available for users of the now shutdown Google+ APIs.

You can use the People API v1 instead. Click here to enable the API.

Thanks @jdpedrie

Message: Error calling GET https://www.googleapis.com/plus/v1/people/me: (403) Legacy People API has not been used in project 986391836060 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=986391836060 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

Filename: C:\xampp\htdocs\ci_login_app\application\libraries\Google\Http\REST.php

Line Number: 110

@jdpedrie I already enabled People api and wait for 12 hours but nothing change.

Activation status
Enabled

Log error

{
    "code": 403,
    "message": "Legacy People API has not been used in project xxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=xxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": "type.googleapis.com/google.rpc.Help",
            "links": [
                {
                    "description": "Google developers console API activation",
                    "url": "https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=xxxx"
                }
            ]
        }
    ]
}

@alviandaniel2109 @abinhho make sure you're using Google_Service_PeopleService, not Google_Service_People.

@jdpedrie I am using https://www.googleapis.com/plus/v1/people/me. So what's things I have to config or enable in google api console? I am using nodejs.

Please direct questions about the Node clients to google-api-nodejs-client.

Was this page helpful?
0 / 5 - 0 ratings