First, I must say your script is really wonderful. Thank you. But I have problem when implementing google login into my site. Please check here, http://allpreview.net/oauth2callback. Its always getting error by invalid_client issues. I dont know what should I do. Im pretty sure if all parameter was setup correctly (client_id, application lines and secret_id). Can you help me to resolve the problem ?