lib/social_profile/providers/facebook.rb in social_profile-0.1.0 vs lib/social_profile/providers/facebook.rb in social_profile-0.1.1

- old
+ new

@@ -27,9 +27,17 @@ when 'male' then 2 when 'female' then 1 else 0 end end + + def birthday + @birthday ||= begin + Date.strptime(extra('raw_info')['birthday'],'%m/%d/%Y') + rescue Exception => e + nil + end + end protected def check_url(url) response = Utils.head(url, :follow_redirects => false)