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.
source
share