Twitter will be retiring v1 of their API in the coming weeks.
If your themes or plugins are using the old version of the API or the @Anywhere library, this functionality will stop working during Twitter’s blackout tests and once v1 of the API is completely turned off. Here are some details from official announcement over on the Twitter Developers blog:
If you’re a developer who has built applications with API v1, you should be moving those applications to API v1.1 now.
What will happen when API v1 has retired?
When API v1 is finally retired, all authenticated and unauthenticated requests to API v1 will return a HTTP 410 Gone status. Older widgets will receive the same response. This status code signifies that all API v1-era resources are gone and not coming back.
What dates should I be aware of?
We will perform the first of what we call “blackout tests” for API v1 on March 5th, 2013. We will not be permanently shutting off API v1 on this date. The @Anywhere framework will be permanently retired on March 5th, as planned.
What are blackout tests?
The blackout tests, which will take place on different days of the week and at varying times of day, are meant to help you better understand the impact the retirement will have on your applications and users. API methods will temporarily respond to requests as if the retirement has already happened — with an HTTP 410 Gone.
On March 5th, 2013, from around 9:00am to 10:00am PST, we’ll perform the first of these tests, limited only to unauthenticated requests. All unauthenticated requests during that time window will be responded to with a HTTP 410 Gone. Be sure to follow @twitterapi to receive notices before, during, and after the blackout test.
To help you upgrade, we’ve added CodeBird, which is a simple PHP wrapper for the Twitter API, to the VIP Shared Plugins folder. Thanks to the development team at CNN for helping us get this library compatible with the WordPress HTTP API.
Here’s a quick snippet on how to utilize the library in your theme:
// Load the library
wpcom_vip_require_lib( 'codebird' );
// Utilize the library
WP_Codebird::setConsumerKey( 'YOURKEY', 'YOURSECRET' );
$cb = WP_Codebird::getInstance();
$cb->setToken( 'OAUTH_TOKEN', 'OAUTH_TOKEN_SECRET' );
// Make API calls
$tweets = $cb->statuses_userTimeline( /* params */ );
The WordTwit plugin will also be officially deprecated at this time. If you’re currently using this plugin, we recommend switching your sites to use Publicize.
If you have any questions or need help updating your code to utilize Twitter API v1.1, please get in touch.