Updating a search with since_id and max_id


#1

I’m using twitter’s API to search for tweets, and I want to be able to update the timeline.

According to “Working with Timelines”, I need to pass the parameters max_id and since_id (ids of the first and last tweets), which I obtain with :

$(’#max_id’).text(tweets.max_id_str);
$(’#since_id’).text(tweets.results[tweets.results.length - 1].id_str);

But when I update I only get the latest tweet (which was already displayed), then nothing, since max_id is now equal to since_id.

Obviously I’m doing something wrong, but what ?


#2

I’m having the same problem.

When I retrieve all the tweets that match a query I update the max_id to obtain new tweets, but at a certain point I end up receiving always the same tweet.


#3

Same problem here, any solution yet?