Last Updated: February 25, 2016
·
465
· kaihsyn

Display tweets on web page.

  1. Create a <div> with id "twitterupdatelist" <div id="twitter_update_list"></div>
  2. 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>
  3. Replace YOURSCREENNAME with your screen name.
  4. Edit count parameter to desire number of tweets you want to display. For example, use count=10 if you would like to display 10 tweets.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
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