我可以在我的应用程序中获取用户名及其 twitter 的个人资料图片。这是我的代码
- (void) OAuthTwitterController: (SA_OAuthTwitterController *) controller authenticatedWithUsername: (NSString *) username {
NSLog(@"Authenticated with user %@", username);
imageview.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:
[NSString stringWithFormat:@"http://api.twitter.com/1/users/profile_image/%@.json",username]]]];
NSLog(@"http://api.twitter.com/1/users/profile_image/username.json");
recentTweets = [[NSMutableArray alloc] init];
[self updateStream:nil];
}
现在我想登录用户的个人资料图片...有人知道吗?