In my app i integrated FHSTwitterEngine for posting images in twitter. Till last week it is working fine. But all of a sudden, while trying to post an image it is showing 204 Error
Domain=FHSErrorDomain Code=204 "The request did not return any content."
i don't think that it is an issue with duplicate post, because image will change according to user selection and while trying to post image first time itself it is giving the error.
Text based tweets are working properly. problem is with image posting only
code i am using
dispatch_async(GCDBackgroundThread, ^{
@autoreleasepool {
NSError *returnCode = [[FHSTwitterEngine sharedEngine]postTweet:self.textToTweet withImageData:UIImagePNGRepresentation(tweetImg)];
NSString *title = nil;
NSString *message = nil;
if (returnCode) {
NSLog("Error-->%d",returnCode.code);
} else {
title = @"Tweet Posted";
message = @"Successfully";
}
}
});
Thanks in advance