开发者

twitter API problem

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;count=2"></script>

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜