Hi
i’m using STTwitter to retrieve tweets in my iOS app.
Actually i’m trying to recreate conversations using the search API with
from: , to: and OR operator.
However my list is always empty, but if i try the same query on twitter console(or on the twitter website ) i got a lot of results.
Where i’m wrong?
NSString *query =
[NSString stringWithFormat:@"(from:%@ OR to:%@)", screenName, screenName];
[[TwitterTeamService shared].twitter getSearchTweetsWithQuery:query
geocode:nil
lang:nil
locale:nil
resultType:nil
count:@"100"
until:nil
sinceID:nil
maxID:nil
includeEntities:[NSNumber numberWithBool:YES]
callback:nil
successBlock:^(NSDictionary *searchMetadata, NSArray *statuses) {
if ([statuses count] > 0) {
NSLog(@"got tweets")
} else {
NSLog(@"No tweets found for %@", screenName);
}
}
errorBlock:^(NSError *error) {
NSLog(@"%@", [error description]);
}];