lib/omniauth/strategies/linked_in.rb in oa-oauth-0.2.0.beta5 vs lib/omniauth/strategies/linked_in.rb in oa-oauth-0.2.0
- old
+ new
@@ -33,9 +33,10 @@
hash = {
'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,
'urls' => person.css('member-url-resources member-url').inject({}) do |h,element|
h[element.xpath('name').text] = element.xpath('url').text