Click here to Skip to main content
15,902,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I want to implement a functionality like Login with google+ in my web application. I have done this using "Client Side Flow" sign in with google+. Now i want to display google+ logged in user information at my web page with logout button but how can i achieve this i don't know, so please help me....
thanks
sunil sharma
Posted
Updated 1-May-13 2:15am
v5
Comments
Thanks7872 1-May-13 3:39am    
what is g+?mention google+ as not everybody is familier with this type of words.
Thanks7872 1-May-13 3:42am    
Go through this and this link.Hope it will help you out.
Joezer BH 1-May-13 5:15am    
Hi Rohan,
If you have an answer, you can post it below under "Add your solution here"
Thanks7872 1-May-13 5:19am    
I have provided links,not an answer.It can not be posted in the section below.It has to be posted here only as a comment.
sonusharma65 1-May-13 7:09am    
Hi Rohan Leuva,
I have follow your link and now it is working fine for me but how can i retrive aditional information like email id, dob, gender, country, state, contact no etc. using below code in my web application :

* Retrieves and renders the authenticated user's Google+ profile.
*/
renderProfile: function() {
var request = gapi.client.plus.people.get( {'userId' : 'me'} );
request.execute( function(profile) {
$('#profile').empty();
if (profile.error) {
$('#profile').append(profile.error);
return;
}
helper.connectServer(profile.id);
$('#profile').append(
$('<p><img src=\"' + profile.image.url + '\"></p>'));
$('#profile').append(
$('<p>Hello ' + profile.displayName + '!<br />Email : '+ + '<br/>Tagline: ' +
profile.tagline + '<br />About: ' + profile.aboutMe + '</p>'));
if (profile.cover && profile.coverPhoto) {
$('#profile').append(
$('<p><img src=\"' + profile.cover.coverPhoto.url + '\"></p>'));
}

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