Archive - Originally posted on "The Horse's Mouth" - 2011-02-27 08:41:13 - Graham Ellis
Twitter has become a useful flow of updating information - an alternative headline source from an RSS feed. How do you incorporate such a flow into your web site?
There are Javascript widgets which you can incorporate into your page, available from twitter (so much less prone to spec change than a third party tool), via http://twitter.com/about/resources/widgets.
If you want to try one of these out ... go to that link and then link on to "My Website", and you'll be off and experimenting.
Here's an example underway - and remember that you can use # and @ tagging and other advanced search options (there's a useful link from the experiment page that list out the available options) if you don't simply one to follow one tweeter.
Then grab the code and incorporate it into your site. It will look something like this:
The Twitter folks have done it very nicely - the separate script download hides all the complicated stuff, and the stuff that's spelled out within your page is clearly understandable parameters that you can easily deal with.
I've added feeds for the Melksham Chamber of Commerce on to their front page - see www.melkshamchanber.org.uk - both the Chamber's own tweets, and a "Happening in Melksham" feed. Do take a look ... I'm thinking that having both may be a bit over the top, and you may see just one of them if you visit after the next Chamber meeting on 22nd March 2011.
If you want to include a tailorable Twitter feed on your site, we'll show you how on our PHP Techniques Course.