Skip to content

Commit

Permalink
Added nickname to LinkedIn strategy using the same method as FaceBook.
Browse files Browse the repository at this point in the history
  • Loading branch information
claco committed Mar 5, 2011
1 parent b2530df commit b78f557
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oa-oauth/lib/omniauth/strategies/linked_in.rb
Expand Up @@ -35,6 +35,7 @@ def user_hash(access_token)
'id' => person.xpath('id').text,
'first_name' => person.xpath('first-name').text,
'last_name' => person.xpath('last-name').text,
'nickname' => person.xpath('public-profile-url').text.split('/').last,
'location' => person.xpath('location/name').text,
'image' => person.xpath('picture-url').text,
'description' => person.xpath('headline').text,
Expand Down

0 comments on commit b78f557

Please sign in to comment.