How to Use the Twitter API to Pull Tweets

The Twitter API developer network provides documentation and code to extend the functionality of the Twitter application. Through the Twitter API, you can add code to your website to pull live feeds. Once the code is on your site, the tweets are automatically pulled from your Twitter account.

Instructions

    • 1

      Insert the following HTML code into the Web page you want to display your tweets:
      <div id="twitter_div">
      <ul id="twitter_update_list"></ul>
      </div>

    • 2

      Insert the following JavaScript code into the Web page where you want your tweets to appear:
      <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
      <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/USERNAME.json?callback=twitterCallback2&count=10"></script>

      Replace “USERNAME” with your Twitter username.

    • 3

      Save the file and publish to your website.

Related Searches:

References

Comments

Related Ads

Featured