Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
I want to fetch User's name and Email after he login via google to my web app(*asp.net)..

I've done something like this for facebook:

FB.Event.subscribe('auth.statusChange', function (response) {

if (response.authResponse) {
// user has auth'd your app and is logged into Facebook
FB.api('/me', function (me) {
//debugger;
if (me.name && me.email){//my code} });}}
I want to do like same for the google login.. I'm being able to login using google a/c but I dont know what event is to use to fetch user's credentials

Plz Help
Posted

1 solution

It's not something I've personally done.

But this article covers the G+ authentication API and should tell you how to get the information you need.

Google+ Sign-In[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900