Adding a Twitter Tweet Box to your site.
It’s always good practice to make things easy for your users. So why not make it easier for them to update their tweet while visiting your site. This article will show you how to implrement Twitter’s tweet box on your site.
What we’re making
Twitter’s @Anywhere allows you to integrate twitter into your site with little to no trouble. So we’re going to take advantage of that and integrate a tweet box for our users to tweet to their tweeps. (Everything is cooler when you put a “tw” in front of it)
Here is an example of what we are making….WARNING THIS WILL POST TO YOUR TWITTER PAGE…so keep love notes about Justin Bieber to a minimum.
Step 1: Get the Key
The first thing we need to do is grab an application key from Twitter…same sort of idea as Facebook, you need it to add any widgets onto your site.
You can get your key at Twitter @Anywhere Dev site, just click on start using it now.

This will ask you to login if you’re not already. After that you’ll have a form to fill out…fun. For what we’re doing you don’t have to fill out much. Give an name to the application, your website url, and be sure to give READ WRITE access.

At the point in writing this I got an error message after I submitted. If you did too, not to worry it still created your application. If you click on the “View Your Applications” you’ll see your newly created application right there. YAY. Click on the app and you’ll see your API Key right at the top.
Step 2: The JavaScript
This is the easy part. All you have to do is cut and paste. Head to the Twitter documentation page. At the top of the page you’ll find the javascript you’ll need to include in your html document. Be sure to put your brand spankin’ new API key in there.
1 |
On the same documentation page, about half way down you’ll also find the code for the tweet box, copy and paste that code into your html doc and you’re ready to go.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
That’s it! As far as API’s go I’ve always loved Twitter. Facebook has always been a pain up until recently. So enjoy, and be sure to experiment with all the Twitter goodness that @Anywhere has to offer.

