2013-01-25 89 views
0

可能重复:
How to check whether a user is logged into his google account through API?用户是否登录Google?

我开发一个网页,显示了谷歌日历。

我的问题是:是否有可能检测用户当前是否登录到Google帐户?如果有可能(我确信它是这样),那么检测这个最简单的方法是什么?

+1

类似/相同的问题很快搜索 http://stackoverflow.com/questions/10459720/how-to-check-whether-a-user-is-logged-into-his-google-account-通过api – jhanifen

+0

你可以检查这个[答案](http://stackoverflow.com/questions/4202785/detect-if-a-web-user-is-currently-logged-in-google) – Jeff

回答

0

用户应该允许你这样做。您应该使用Google API,这里是: http://code.google.com/apis/accounts/

检查API,注册API密钥,用户应该让您检查他们在Google中的状态。

+0

请看这里:http: //www.tomanthony.co.uk/blog/detect-visitor-social-networks/#code全部在一个代码中检查用户在Facebook,Google,Twitter等中的状态 –