jQuery.latestTweet

On this page you'll find a few examples that demonstrate the jQuery.latestTweet plugin

View on GitHub Download zip

Plugin defaults

$.fn.latestTweet.defaults = {
  formatLinks: true,          // format url's to a clickable link
  formatMentions: true,       // format @username to a link to the users profile
  formatHashes: true,         // format #tag to a link to the twitter tag search
  callback: function() {}     // function that will be called after the latest tweet has been filled in.
};

Tweet

Code
$(function() {
  $('#demo1 p').latestTweet('bbcnews');
});

Tweet

Code
$(function() {
  $('#demo2 p').latestTweet('bbcnews', {
    formatLinks: false,
    formatMentions: false,
    formatHashes: false
  });
});
press the button to start

Tweet

Code
$(function() {
  $('#demo3start').click(function(e) {
    e.preventDefault();
    $("#log").text('start getting latest tweet');
    $('#demo3 p').latestTweet('foxnews', {
      callback: function() {
        $("#log").text('finished!');
      }
    });
  });
});