August 6, 2009

Show Your Latest Twitter Post on Your Website

Filed under: Online Marketing,Web Development — Tags: — Jack @ 2:32 pm

Would you like to show your latest tweet (or tweets) on your website?  Well, here’s a quick and easy way to Twitter-ize your site.

Twitter provides a couple of scripts that need to be included in your code.  It’s probably best to add them right before the </body> tag so the rest of the page loads first.  Go ahead and add them:

<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script>

<script src="http://twitter.com/statuses/user_timeline/your_username.json?callback=twitterCallback2&count=1" type="text/javascript"></script>

Edit the src attribute of the second script to replace “your_username” with your Twitter username. If you would like to show more than just the latest post, you can change the number where it says “count=1″ to reflect how many posts you would like to show (eg. count=2, count=3, count=4).

Now you need to place this code in your markup where you want the tweets to show up:

<div id="twitter_div"><ul id="twitter_update_list"><li> </li></ul></div>

Your tweet(s) will be added to this div automatically. Style the Twitter div with some CSS and you’re good to go!

6 Responses to “Show Your Latest Twitter Post on Your Website”

  1. Cooper Talbot
    2:09 pm on December 11th, 2009

    How many people here know of someone making money off of Twitter?

  2. tweetadder promotion code
    8:00 am on March 8th, 2010

    For making interactive relationships, one must definitely have to consider twitter as the primary supportive tool. With Twitter as your tool of marketing, you can expect a lot, a vast range of customers is a guarantee because of the number of friends you can make on twitter. 100′s will follow you every time you follow them.

  3. datafeedr coupon code
    8:40 am on March 8th, 2010

    Affiliate marketing has the potential for bringinng passive income streams, but you unquestionably will have to put some time and effort when starting out to get your strategies in place.

  4. hummingbird review
    2:48 pm on March 17th, 2010

    Done the right way, a Twitter advertising campaign can produce a massive effect on customers and revenue whether your business is online or offline. |If you are utilizing Twitter for the internet marketing, you need to be aware of the importance of the followers, It is a fact that there is no use in Twitter if you cannot get the other users to follow you.

  5. tweet adder
    1:25 am on April 3rd, 2010

    Twitter is one of the fastest growing websites nowadays. Different types of people simply love this website, because it serves as a exceptional way for them to communicate with other people from other parts of the world. That’s why people today are immediately taking advantage of Twitter by advertising their products or to advertise their businesses. You can even use Twitter to promote your web page or site in order for you to generate targeted traffic flowing into your site and start making much money.

  6. Family10Guy
    5:57 pm on May 5th, 2010

    Nice!Just bookmarked this website, let me return here once more.Love Show Your Latest Twitter Post on Your Website | Website Design Blog

Leave a Reply