在我的网站上使用Google Plus登录 [英] Login with Google Plus on My Website
问题描述
我是Web开发的新手.我搜索了Google plus的登录信息,并找到了一些不错的教程.但是它们似乎很老(大多数来自2011年).为什么?
I'm very new to web development. I have searched for login with Google plus and found several good tutorials. But they seems to be very old (most of them from 2011). Why?
我尝试了下面的代码块.
I tried below code chunks.
<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>
我只是手动将粘贴的令牌复制到jQuery加载函数上的url中.但是页面上没有任何内容.
I just manually copy pasted the token to the url on the jQuery load function. But nothing is filled to the page.
推荐答案
I'm in a Google presentation at the moment and apparently they have just launched Google+ sign-in, which allows you to do stuff like this much more elegantly.
我对此一无所知,但确实值得一看.
I don't know any more about it than that, really, but it certainly seems worth a look.
这篇关于在我的网站上使用Google Plus登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!