Get user firstname; lastname in google api through authlogic-connect

14 views
Skip to first unread message

dinesh singh

unread,
May 11, 2012, 9:13:43 AM5/11/12
to rubyonra...@googlegroups.com
Hello,

I am using authlogic-connect 0.0.6 version in ruby on rails. I am able
to get the google user email id, but not able to get the firstname and
lastname.

i am using the follwing code:

@google ||=
JSON.parse(token.get("https://www.googleapis.com/oauth2/v1/userinfo#profile").body)

however i read that if i add the scope in access token, we can get the
user profile detail. But i am not found any way, how i can do this.

My ruby version : 1.8.7 rails version : 2.3.11

Attachments:
http://www.ruby-forum.com/attachment/7376/profile_auth.rb


--
Posted via http://www.ruby-forum.com/.
Reply all
Reply to author
Forward
0 new messages