Skip to content

Instantly share code, notes, and snippets.

@Matwolf08
Created March 11, 2012 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Matwolf08/2014580 to your computer and use it in GitHub Desktop.
Save Matwolf08/2014580 to your computer and use it in GitHub Desktop.
Facebook Strategy Class
info do
prune!({
'nickname' => raw_info['username'],
'email' => raw_info['email'],
'name' => raw_info['name'],
'first_name' => raw_info['first_name'],
'last_name' => raw_info['last_name'],
'image' => "#{options[:secure] ? 'https://' : 'http://'}graph.facebook.com/#{uid}/picture?type=square",
'description' => raw_info['bio'],
'urls' => {
'Facebook' => raw_info['link'],
'Website' => raw_info['website']
},
'location' => (raw_info['location'] || {})['name'],
'verified' => raw_info['verified']
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment