Skip to content

Commit

Permalink
Added "'public_profile_url' => person.xpath('public-profile-url').tex…
Browse files Browse the repository at this point in the history
…t," to retrieve profile url
  • Loading branch information
zeantsoi authored and sferik committed Apr 24, 2011
1 parent 1725896 commit 66e8fbc
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 @@ -38,6 +38,7 @@ def user_hash(access_token)
'location' => person.xpath('location/name').text,
'image' => person.xpath('picture-url').text,
'description' => person.xpath('headline').text,
'public_profile_url' => person.xpath('public-profile-url').text,
'urls' => person.css('member-url-resources member-url').inject({}) do |h,element|
h[element.xpath('name').text] = element.xpath('url').text
h
Expand Down

0 comments on commit 66e8fbc

Please sign in to comment.