Extension:SendToTwitter

What can this extension do?
This extension posts a tweet to twitter of any url that is updated in your wiki. The messages are customizable and urls are automatically shortened through TinyUrl.

Website examples
WikiCity Twitter Account: WikiCity

Note: This website uses a more advanced version of this extension due to specific content.

Wetland Research

Twitter Account: Wetland Research

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: Modify the username/password in the extension file to match your twitter account.

Anti Spam
When using any mediawiki anti spam measures that checks the input prior to a save, change

to

In the current setup, any change is broadcasted to twitter, on an attempted save. If the edits aren't saved due to anti spam measures, they are still are successfully twittered as changes. The modification above will only send the update to twitter if it has successfully been reviewed and saved. A quick way to check if this is an issue for you is to compare your Recent Changes to your twitter account, they should be identical. For Mediawiki versions prior to 1.4.0, you may need to use a different variable.

Troubleshooting
I had some issues with the URL not being correct when being sent to Twitter, I believe because I am using a stock Mediawiki install, and not using the Mediawiki URL rewrite option. to and it is now working again.

If you want to only new pages be posted and not every changes, you have to change to