Don't be stingy, Share this post with others!
Get your latest twitter updates without using a plugin
I know there are many plugins out there that are capable of grabbing your twitter feed, but what if you do not want to use a plugin? Today I have come across a line of code that contains pure JavaScript and HTML and will grab your twitter feed.
The Code
Copy and paste the code below where you would like for your latest twits to show.
<div id="twitter_update_list"> <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script> <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/yourtwitternamehere.json?callback=twitterCallback2&count=Number of twits you want to show goes here"></script> </div><!--end twitter_update_list-->
This is a quick and easy solution for those who are searching for ways to add twitter feed to their sites using pure code and not a plugin. I hope this worked well for you all as it did for me.
Don't be stingy, Share this post with others!
javascript, latest, no plugin, pure code, twitter, twitter feed, twitter feed no plugin, twitter feed tutorial, twitter html tutorial, twitter tutorial, twitter updates tutorial, updates.
3 Responses to Get your latest twitter updates without using a plugin
-
Just wondering why you’d use this instead of the styleable twitter widget available from twitter themselves?
http://twitter.com/about/resources/widgets/widget_profileIt is as much pure code as the solution provided here (which I’m taking to basically mean no server-side code for contacting twitter is required).
Also of note – the code you have isn’t valid HTML. tags are only allowed in the and elements (the preference being to put them just before your closing tag to allow fast page loading).
Client-side only solutions are great though. I’m using one on my site now (still under construction) to avoid having any server-side scripting at all
Great Tutorial. Very simple and fast