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

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