Open main menu
This page is a translated version of the page Extension:TwitterLogin and the translation is 43% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎中文 • ‎日本語
OOjs UI icon advanced.svg
发布状态: 未维护
实现 User identity
描述 Register and log in (authenticate) to a MediaWiki wiki using your Twitter account
作者 David Raison and Dave Challis (Clausekwistalk)
最新版本 0.03 (2015-01-11)
MediaWiki 1.23+
许可协议 GNU Lesser General Public License 3.0 or later
例子 wiki
$wgConsumerKey, $wgConsumerSecret

此扩展将Twitter OAuth注册机能添加到MediaWiki中。 The code is derived from Dave Challis' implementation done for Web8D 2010 and also uses the twitteroauth library by Abraham Williams.

You need to register an application with Twitter in order to be able to use this extension. See the Configuration section for more details on how to register a Twitter app.


This extension does not work with MediaWiki 1.19 and higher when you require your users to confirm their email addresses ($wgEmailConfirmToEdit = true), since setting an email address now requires a password (which does not exist for users who authenticate through Twitter).



The twitteroauth library requires the php-curl module.


  • 下载文件,并将其放置在您extensions/文件夹中的TwitterLogin目录内。


为了使用此扩展,您需要注册您的MediaWiki安装副本为Twitter应用。 您可以在此做它。

You will need to set a callback url in your app's settings. This will in most cases be https://wouwikidomain.tld/wiki/Special:TwitterLogin/callback.

When you have registered your application, you will get a consumer key and secret. Add these to your LocalSettings.php file, just below the line where you required the extension:

$wgConsumerKey = '[yourkey]';
$wgConsumerSecret = '[yoursecret]';


  • 0.1 - Initial release.
  • 0.2 - Now uses MediaWiki's http class instead of curl directly.
  • 0.3 - Now uses Twitter's 1.1 API link.



  • Support tying Twitter screen-names to existing MediaWiki accounts.
  • Redirect first time users to their preferences screen to let them confirm their email address.
  • Add an option to be set in LocalSettings.php whether Twitter users should be automatically emailconfirmed or not.