Twitter user_timeline API not showing retweets

I had a problem integrating the Twitter API on my website to make a small feed of my latest tweets. I call the JSON API using this URL:

http://twitter.com/statuses/user_timeline.json?screen_name=<my username>&count=2

I get the right feed, and when I parse it, it’s completely beautiful. Although I noticed that after I reworked the tweet from my account, in the root of JSON, one bottom record started to show at the bottom (I had 2 tweets, now they showed 1).

I thought this was because the API was now returning two tweets, one of which was my retweets, and pulled out the oldest tweet, although the retweets did not appear.

After checking the actual JSON code returned by the API, I found that there were no traces of my oldest tweet (the one that popped up) and the new retweet. The only tweet shown is my second one, the one I rewrote.

Does anyone know how to solve this? I don’t want the stream on my website to show retweets, so that’s fine, but I also don’t want my retweets to make real tweets disappear.

Thanks in advance.

+3
source share
3 answers

countdoesn't promise how many tweets will be returned. This is more of a counter. If you want to increase your chances of getting two regular tweets, set countto 10 or 20 and display only the last two.

+3
source

Twitter include_rts. count, -, , , include_rts (, , /).

http://twitter.com/statuses/user_timeline.json?screen_name=<my username>&count=2&include_rts=true
+4

From the api documentation for user_timeline here I would suggest making a few more tweets to see if the problem disappeared, maybe it was just an accident.

0
source

All Articles