Skip to content

Instantly share code, notes, and snippets.

@lamprosg
Created July 18, 2012 10:54
Show Gist options
  • Select an option

  • Save lamprosg/3135537 to your computer and use it in GitHub Desktop.

Select an option

Save lamprosg/3135537 to your computer and use it in GitHub Desktop.
Latest Tweet using jQuery
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$(document).ready(function ()
{
$.getJSON("http://twitter.com/statuses/user_timeline/USERNAME.json?callback=?", function(data) {
$(".show_tweet").html(data[0].text);
});
});
</script>
<div class="show_tweet"></div>
//replace USERNAME with your unique Twitter username
//The show_tweet class is where the Tweet will display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment