rapidwebltd/php-google-people-api

php-google-oauth-2-handler problem - Error 400: invalid_request

urtvs opened this issue · 1 comments

urtvs commented

Hi
We try to use your library install it by composer and run
vendor/rapidwebltd/php-google-oauth-2-handler/src/setup.php

We create oauth key 2.0 for desktop application, copy it in instalation wizard and on last step when we need to open link in browser Google return Error 400: invalid_request

You can’t sign in because {account name} sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of {account}, see error details.
Error 400: invalid_request

What we do wrong?
Thanks

You need to use application type as "Desktop App" instead of "Web application" when creating Client ID in the Google API console.