Display tweets on web page.
- Create a <div> with id "twitterupdatelist"
<div id="twitter_update_list"></div>
- Copy and paste following code into same page.
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="https://api.twitter.com/1/statuses/user_timeline.json?screen_name=YOURSCREENNAME&callback=twitterCallback2&count=1"></script>
- Replace YOURSCREENNAME with your screen name.
- Edit
count
parameter to desire number of tweets you want to display. For example, usecount=10
if you would like to display 10 tweets.
Written by Kai-Hsin Liu
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#