How to get user profile image from logged user with Twitter Kit/Fabric in iOS
ios, objective-c, twitter
Solution
I don't think the TWTRSession object has the user's image, but you can use the session to request a TWTRUser object, and that will have what you need.
Problem
i'm using Fabric in order to add a "Sign In with Twitter" button in my app. Sign in process works fine, but I don't how (if it's possible) how to get the logged user's profile image. Is there any property inside TWTRSession with this info (like userName and userID)? Looked for it but I didn't found anything? ``` [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) { // I get user data here... // and need to get user Twitter's profile image }]; ``` Thanks EDIT Thanks to sak's answer, i figured out how to do it. ``` [TWTRLogInButton buttonWithLogInCompletion:^(TWTRSession *session, NSError *error) { [[[Twitter sharedInstance] APIClient] loadUserWithID:session.userID completion:^(TWTRUser *user, NSError *error) { NSLog(@"User image %@", user.profileImageURL); }]; }]; ```