User:Varnent/sandbox

Description
Updates a predefined twitter account each time a new article is created on your WikiMedia instance. URLs are shortened using Bit ly URL shortener. Additional parameters (&fb_ref=FB&source=TwitterTAN) are added to the URL so you can trace the efficiency of the Twitter announcements. Updates of images (JPG/PNG) are ignored.

Installation

 * Download the extension (copy paste the 2 files from below).
 * Download Matt Harris' OAuth twitter library from https://github.com/themattharris/tmhOAuth
 * Store the files in the  directory
 * Add the following line to your LocalSettings.php
 * Users should have a Twitter account and request API permissions (OAuth settings and tokens). You can register at http://dev.twitter.com. Be sure to have write and read permissions!
 * Set OAuth Settings and Access Tokens at LocalSettings.php:
 * Users should have a Bit.ly account and API key. More information at http://code.google.com/p/bitly-api/wiki/ApiDocumentation#Authentication_and_Shared_Parameters
 * Add the following 2 lines to your LocalSettings.php:
 * Check if you have 6 logins or keys in total!
 * Your twitter should now update whenever a new article is created!

Update history
12 September 2011: 0.2 23 July 2011: 0.1
 * Ignoring images (jpg/png)
 * Using URL shortener
 * Added 'efficiency tracing parameters' to the URL
 * First version