Sign in with Google Plus to my site

I am very new to web development. I searched the login with google plus and found some good tutorials. But they seem to be very old (most of them since 2011). Why?

I tried under the pieces of code.

<script type="text/javascript" language="javascript">    
   $("#packagesGrid").load('https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token=ya29.ahes6zt9yv2qaeej5ycn21fn9maokp15scwqkcal3guqxxez7odtjg&token_type=bearer&expires_in=3600');    
</script>

I just manually copied the token into the jQuery download function url. But nothing is populated on the page.

+5
source share
4 answers

I'm in a Google presentation right now, and apparently they just launched a Google+ sign-in that allows you to do things like this a lot more elegantly.

I don’t know more about this than it really is, but it is definitely worth a look.

+2
source

API Google OAuth 2.0 . Google OAuth 2.0, -, JavaScript, , . OAuth Google.

: https://developers.google.com/accounts/docs/OAuth2

,

https://code.google.com/p/google-plus-php-starter/

.

, 100%.

+6
+3

Api php

(, , , API Google).

API . -...

.

+1

All Articles