jquery.ui.twitter.rss
Twitter RSS jQuery Plugin
The Twitter RSS jQuery plugin makes it easy to retrieve RSS information from Twitter and display it on a page using all client side code. The plugin makes a request to Twitter by way of JSONP, by default applies a template to the retrieved content, then injects the content into the context element.
Download The Plugin
Getting Started
- Make sure you have jQuery installed and working.
- Download the plugin and place it in your scripts directory.
- Include the plugin script and start using it.
- See examples below.
Examples
Example 1
Populate an element with 5 of a user’s tweets.
<div id="myUserTweets" />$(function(){
$("#myUserTweets").twitterRss({username: "thegodlikemouse", limit: 5});
});Example 2
Populate all elements of a specific class with the user’s tweets by tag parameters.
<div class="userTweets" twitter-username="godlikemouse" twitter-limit="5" />$(function(){
$(".userTweets").twitterRss();
});API Options
| Option | Attribute Equivalent | Description |
|---|---|---|
| username | twitter-username | (Required) The Twitter username from which to pull the tweets. |
| template | twitter-template | The template string which will be used to transform each entity. Default is $.fn.twitterRss.defaultTemplate. |
| context | n/a – uses current $this | The content target or content element to be populated. Default is null. |
| offset | twitter-offset | The zero based starting offset to be used when retrieving tweets. Default is 0. |
| limit | twitter-limit | The maximum count or limit of tweets to retrieve. Default is 25. |
| url | twitter-url | The url used to retrieve tweets. Default is http://api.twitter.com/1/statuses/user_timeline.json. |
| callback | n/a | The callback function to be use as an override when retrieving tweets. Default is null, internal template engine is used. |









