Updating a search with since_id and max_id


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 :

$(’#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 ?


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.


Same problem here, any solution yet?