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
countparameter to desire number of tweets you want to display. For example, usecount=10if 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
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#