ShareKit/ShareKit — pull request #59 by VilemKurz (2011-10-18 14:38:42+00:00)
Title: Get user info from "non keychain" services (Facebook & Twitter in this pull request)

I needed to show what user is logged in twitter/facebook somewhere in my app. ShareKit does not have this information, so the only way to get it is to fetch the info from the service. Added new SHKShareType SHShareTypeUserInfo. The result is new kSHKUserInfo key in NSUserDefaults, containing parsed json feed in form of NSMutableDictionary, containing currently logged user information. You can pick whatever bit of user information you need. You can call

[SHK getUserInfo];

from anywhere in your app, and watch for SHKSendDidFinish notification to update your UI.

Note that for parsing JSON I decided to use JSONKit and added it as a submodule.

User info feature was much requested on internet, but with very little response. I think we are the first to incorporate this in a way consistent with the ShareKit logic.