Twitter API - Is it broken or am I using it incorrectly?

When I request to display 10 tweets, I get one. When I say 11, I get 3. But when I say 20, I get 20. Am I doing something wrong?

This is my code:

    <div id="twitter" class="widget">
    <div class="twitter-header"></div>
    <div class="twitter-content">

    <ul id="twitter_update_list">
        <li>Twitter feed loading</li>
      </ul>

    </div>
    <div class="twitter-footer"></div>
</div>

<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> 
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/trekradio.json?callback=twitterCallback2&count=10"></script>
+3
source share
2 answers

The problem is that you do not see retweets on the timeline. Unfortunately, with the method you use, you cannot use

include_rts=1

Change the line to

https://api.twitter.com/1/statuses/user_timeline.json
    ?screen_name=trekradio
    &include_rts=1
    &callback=twitterCallback2

This will return JSON with all retweets on the timeline.

+5
source

All Articles