Wrapper for Omniauth profile hash


Add this line to your application's Gemfile:

gem 'social_profile'

And then execute:

$ bundle

Or install it yourself as:

$ gem install social_profile


Parse auth hash:

profile = SocialProfile.get(auth_hash)
profile.picture_url   #
profile.gender        # 0 - unknown, 1 - female, 2 - male
profile.profile_url   #
profile.provider      # facebook

Post photo to social album. If album dosn't exists, it's create new one:

user = SocialProfile::Person.get(:facebook, uid, access_token)

user.share_photo!(album_id, filepath, {
  :album => {:name => "Site pictures"}, 
  :photo => {:message => "Cool photo"}


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright (c) 2013 Fodojo, released under the MIT license