Tweet Feed

A jQuery Plugin Live feed of the twitter timeline!

Buy It! - $3

Configuration

Create a Twitter Widget and Obtain a Widget ID

In order to configure your tweet feed timeline, you will have to head over to twitter and configure your widget.

  1. After logging in to twitter, go to the twitter widget creation page. (You can get here also by clicking the cog in the top right corner, and selecting settings in the dropdown. Then select widgets in the menu on the left.)
  2. Click the create new button.
  3. Select any of the options. The style options will not be applied because Tweet Feed applies its own styles, but everything else is fair game.
  4. Click "Create Widget".
  5. Select the Widget ID on the url by selecting the text between the widgets and edit portion of the url. (You can also get the widget id by copying the html that twitter provides and getting the data-widget-id attribute on the a element)
  6. Copy the id and save it for the installation of your widget.

Installation

Javascript

I have included 'tweetfeed.min.js'. Just include this on your html page after jQuery like this:

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/tweetfeed.min.js"></script>
This is a plugin, so jQuery is a required dependency.

CSS

I have included 'tweetfeed.css'. Just include this on your html page like this:

<link type="text/css" rel="stylesheet" href="css/tweetfeed.css"/>

</> HTML

Paste your widget ID in this input to get the correct code. Just copy and paste the code below to your site.

Widget ID
<div id="tweet-feed-widget"></div>
<script type="text/javascript">
  $('#tweet-feed-widget').tweetFeed({
    widgetId: 'PASTE YOUR WIDGET ID HERE'
  });
</script>

Examples

Easy One-Liner

<div id="tweetfeed-container" data-widget-id="PASTE YOUR WIDGET ID HERE"><script>$('#tweetfeed-container').tweetFeed({widgetId:$('#tweetfeed-container').attr('data-widget-id')})</script></div>
Feed will appear Here

Custom Sizing

By default, the feed is responsive with its width, but you can also specify an explicity width.

$('#container5').tweetFeed({
  widgetId: 'PASTE YOUR WIDGET ID HERE',
  width: 800,
  height: 300
})
Feed will appear Here

API

tweetFeed Function

$(selector).tweetFeed(options);

Options Configuration Object

$(selector).tweetFeed({
  widgetId: undefined
  pollInterval: 10,
  maxTweets: 10
  height: undefined
  width: 400
  stopPollOnHover: true
});

Sources and Credits

I've used the following images, icons or other files as listed.

- justspamjustin