Youtube token requesting doesn’t work

Error:

– Token requesting doesn’t work.

– Error message: Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Error fetching OAuth2 access token, message: ‘invalid_client’

Usually the problem is that there are space characters left in the Client ID or Client secret, because for some reason, when you copy these, sometimes empty characters are getting in the beginning or the end of them. Just copy them into a notepad to make sure, that you don’t have any, then paste them into our backend, and the token requesting should be fine.

If that won’t help, the invalid_client error message was made for, when there isn’t a product name given in the Consent screen, also you should choose an email address too, because that will throw another error if you won’t.

consent_screen