README.md in social_profile-0.0.1 vs README.md in social_profile-0.1.0

- old
+ new

@@ -16,21 +16,36 @@ $ gem install social_profile ## Usage +Parse auth hash: + ``` ruby profile = SocialProfile.get(auth_hash) profile.picture_url # http://profile.ak.fbcdn.net/h..._4963049_s.jpg profile.gender # 0 - unknown, 1 - female, 2 - male profile.profile_url # http://www.facebook.com/develop.rails profile.provider # facebook ``` +Post photo to social album. If album dosn't exists, it's create new one: +``` ruby +user = SocialProfile::Person.get(:facebook, uid, access_token) + +user.share_photo!(album_id, filepath, { + :album => {:title => "Site pictures"}, + :photo => {:message => "Cool photo"} +}) + +``` + ## Contributing 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