
Jeff Remer
Software Engineer
As part of Widgetbox's new staff series—we'll be bringing you occasional guest posts from members of the Widgetbox team.
Twitter has never been stingy with their data. With enough expertise, you can do just about anything you can do on Twitter.com off the site using with their extensive REST and Search APIs. Developers have implemented Twitter-based authentication using Twitter as an OAUTH provider, with some websites providing their own version of Twitter status timelines based on the kinds of information they want to display. The sheer number of Twitter apps, clients, and mashups is a testament to the wealth of data available through relatively simple API calls and REST URLs. Full or at least partial Twitter API implementations are not uncommon, however they are not very lightweight.
Until recently, some of the most desirable types of Twitter API integrations have also been the most difficult, with even the most modest implementations requiring a significant portion of code dedicated to authenticating API calls. Allowing Twitter users to authenticate and tweet off-site have typically required relatively involved API implementations and multi-legged OAUTH requests. While Javascript OAUTH client libraries do exist, they simply mirror unnecessarily verbose server-side implementations. This development approach doesn't align very well with the wealth of data and functions that Twitter has made open from the beginning.
Recently Twitter addressed this challenge and unveiled @anywhere, a simple yet powerful Javascript client library. This lightweight set of tools allows developers to easily integrate Twitter functionality such as authentication and inline tweets. Like Facebook Connect, Connect with Twitter is now available by simply registering a new @anywhere application and including a script tag and a few lines a Javascript. Developers previously had the ability to implement @anywhere to allow users to log into a website using their Twitter credentials, but it was not nearly as concise or flexible.
Once connected, a website implementing @anywhere can offer a Twitter user more functionality including the ability to follow other Twitter users and tweet from inline Tweet Boxes—all without having to go to Twitter.com. Even if a user on a website isn't registered on Twitter, or if they choose not to login with Twitter Connect, developers still get a couple of other benefits by adding @anywhere.
As the number of Twitter users grows, referring to someone's online personality with their Twitter username has become increasingly pervasive. Typically websites do their own linking of Twitter usernames either by hand or through some simple string manipulations. @anywhere provides a method to automatically link Twitter usernames in a given portion of web page automatically. The Twitter @anywhere developers took this feature one step further and introduced Hovercards. By hovering over a linked Twitter Username, a web page visitor can see a preview of a Twitter user's profile and even follow the user without leaving the web site.
Currently @anywhere consists of these few core features: Follow Buttons, Tweet Boxes, Linkify/Hovercards, and Connect with Twitter. However, by implementing Twitter authentication in a simple Javascript library, Twitter is opening up their API even further and could eventually allow for an extensive set of functions based on combinations of their REST API.
Twitter recently announced Blackbird Pie, a tool that allows you to embed static tweets in a web page. Blackbird Pie solves the problem of transcription. In the developer community I think we can expect more features like Blackbird Pie to make their way into @anywhere. Twitter understands that a crucial key to user expansion will be allowing for a programmatic way to embed tweets in a web page and allow users to interact with Twitter content off-site.
Sneak peak: http://blog.twitter.com/2010/03/anywhere.html
Announcement: http://blog.twitter.com/2010/04/its-alive.html
API Docs: http://dev.twitter.com/anywhere
Blackbird Pie: http://media.twitter.com/blackbird-pie/
Make a Twitter Widget at Widgetbox: http://www.widgetbox.com/make/twitter
—When he isn't biking competitively or on his way to be sponsored by Naked Juice, Jeff is a front-end software engineer here at Widgetbox
Click to read more ...