This is my code block that i use to post image to the twitter.
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"info" ofType:@"png"];
UIImage *image = [[UIImage alloc] initWithContentsOfFile:imagePath];
NSData *imageData = UIImageJPEGRepresentation(image,.05);
[_twitter postMediaUploadData:imageData fileName:@"splash_02" uploadProgressBlock:^(NSInteger bytesWritten, NSInteger totalBytesWritten, NSInteger totalBytesExpectedToWrite) {
} successBlock:^(NSDictionary *imageDictionary, NSString *mediaID, NSString *size) {
NSLog(@"xfdf=%@",imageDictionary);
} errorBlock:^(NSError *error) {
NSLog(@"xfdferror=%@",error);
}];
I get response success but no image is posted