Access denied for OAuth 2.0 authentication

Hello! Trying to implement OAuth 2.0 account linking on a website. Read the documentation, found the endpoints, supplied the Client ID and the Client Secret key, but the result is “Access Denied”. Please help!