public function doGoogleLogin()
{
$googleService = OAuth::consumer('Google');
$code = Input::get('code');
if (!empty($code)) {
$api_key = 'my-api-key';
$token = $googleService->requestAccessToken($code);
$me = json_decode($googleService->request('https://www.googleapis.com/oauth2/v1/userinfo'), true);
$message = 'Your unique Google user id is: ' . $result['id'] . ' and your name is ' . $result['name'];
...
I'm getting "The parameter app_id is required" in Google OAuth. Am I doing something wrong? I have set a "Client ID for web application" in Google, as well as a server Public API access key.
Here's my code.
And my controller which loads things:
I'm getting "The parameter app_id is required" in Google OAuth. Am I doing something wrong? I have set a "Client ID for web application" in Google, as well as a server Public API access key.
Thanks!