views:

65

answers:

1

I am using this to get my latest Tweets

<script type="text/javascript"  src="http://twitter.com/javascripts/blogger.js" ></script>

<script type="text/javascript"src="http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&amp;amp;count=2"&gt;&lt;/script&gt;

so i have to get the latest 2 tweets cause i set the count to 2 , sometimes it returns only 1 why is that ?

+2  A: 

I actually ran into this same problem today it's in the documentation that twitter doesn't return re-tweets in the list for backwards compatibility:

count. Optional. Specifies the number of statuses to retrieve. May not be greater than 200. (Note the the number of statuses returned may be smaller than the requested count as retweets are stripped out of the result set for backwards compatibility.)

http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline

That could be what's causing it for you.

William
actually sometimes retweets appear and sometimes my tweets doesn`t appear , that`s what make it weird
Gabri
Could the difference be re-tweets you do by convention i.e. putting RT in front of the message vs. clicking the re-tweet button?
William