Thursday, November 3, 2011

10:28 AM
One of the great things about Twitter is that you rarely ever go to the actual site. You can use a program like Tweetie or TweetDeck to send all your Tweets. Another great thing is the ability to embed your recent Tweets onto other websites. It’s a rather simple process, so check out my demo and then keep reading to learn how you can embed your Tweets on your page.


<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/learnphp123.json?callback=twitterCallback2&count=3"></script>



Copy the above code and paste it right into your XHTML code on your webpage, (right in the body).

All you need to do is replace where I have “learnphp123”. That is my Twitter user name, replace it with yours.

The other thing you get to decide is how many of the most recent posts you want to show. Change the part where it says “count=1? to however many Tweets you want to show up.

So that’s all there is to it.. how you style the text, links, and surrounding environment for the feed is up to you and your creativity.

0 comments: