Twitter Search Widget

It seems I can get a twitter search widget to display the last three tweets. Can this be expanded? How far in time does the widget receive information?

+1
twitter
source share
1 answer

It's strange that so far only three tweets are displayed, because by default this value is 30 in widgets, if only there are three tweets related to the search query!

However, you can add any additional properties that you want to see in widgets, see all with details here . To return in time, I think that since_id and until will interest you.

If you want to determine the number of tweets displayed, you should use the rpp property, which can have a maximum value of 0f 100 , this is an example:

 <script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script> <script> new TWTR.Widget({ version: 2, type: 'search', search: 'rainbow', interval: 30000, rpp: 50, // WE ARE HERE IN THE VERY BODY OF THE OBJECT! title: 'It\ a double rainbow', subject: 'Across the sky', width: 250, height: 300, theme: { shell: { background: '#8ec1da', color: '#ffffff' }, tweets: { background: '#ffffff', color: '#444444', links: '#1985b5' } }, features: { scrollbar: false, loop: true, live: true, behavior: 'default' } }).render().start(); </script> 

Hope this is helpful!

+1
source share

All Articles