I am using the following code for tweets in user timeline using iOS 5 twitter API
// Create an account storage object. ACAccountStore * accountStore = [[ACAccountStore alloc] init];
I have been using this method for over a month now to test the application, and it worked perfectly without problems.
A few weeks ago, he began to return error 403 in the following method.
[postRequest performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error) { NSString *output = [NSString stringWithFormat:@"%i", [urlResponse statusCode]]; [self performSelectorOnMainThread:@selector(TweetStatus:) withObject:output waitUntilDone:NO]; }];
it gives the following error:
Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn't be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x1f8b3250 {NSErrorFailingURLKey=http:
I searched a lot and could not find a solution or a real reason for this problem.
A few notes to keep in mind to help understand the problem:
- the app is used for testing, which means we used Twitter sharing and we mention a lot with other users.
- general content is not always the same, so the duplication problem does not arise, since we often clear the schedule.
thanks
source share