Adding a Drupal Recent Tweets Block
These are the steps I took to add the recent tweets block you see on the right of my blog page.
1. Created a new block with the Title and Block Description, "Recent Tweets."
2. Pasted the following code into the Block Body. I originally found the code here.
<div id="twitter_div">
<ul id="twitter_update_list"></ul></div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script text="text/javascript" src="http://twitter.com/statuses/user_timeline/juliakm.json?callback=twitterC...
Here is what you will need to change:
<div id="twitter_div">
<ul id="twitter_update_list"></ul></div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script text="text/javascript" src="http://twitter.com/statuses/user_timeline/[Your Twitter Username].json?callback=twitterCallback2&count=[Number of Posts to Display]"></script>
3. Set the Input format to PHP Code.
4. Cleared the cache on my site using the Devel module.
5. Logged out and admired my block.




Comments
A line missing
You missed the last line that will have the actual user name and json syntax call.