Extension talk:TwitterFeed

Is there any way to get a twitter feed, e.g., from http://twubs.com/tlot and embed that into my wiki? Do I have to have a twitter account? Tisane 16:08, 29 March 2010 (UTC)
 * If you go to their Twitter profile and grab the numeric ID from their RSS feed as specified in the Usage section, you should be able to pull in anyone's tweets. Reach Out to the Truth 17:12, 29 March 2010 (UTC)

I have some bug fixes and improvements for this. Are you still maintaining it? Bcoughlan 03:58, 4 January 2011 (UTC)

I would be interested in bug fixes and improvements. This extension worked most of the day for us but just crashed. All the feeds are showing up blank. --Ryascolot 22:56, 1 March 2011 (UTC)

We have the same problem: all feeds are blank. Seems to be a problem since upgrading to MediaWiki 1.16.2. I changed line 122 in TwitterFeed.php to:


 * function renderTwitterFeed( $input, $params, $parser ) {

and it works. --Volker, 13:19, 30 March 2011

Timezone is not correct (bug from Twitter I guess, who doesn't honor timezone preference in their feeds). Converting to date fixes the problem:


 * $date = date("D, j M Y H:i:s", strtotime($date));

or adding the time difference by hand if the server is not based locally:


 * $date = date("D, j M Y H:i:s", strtotime($date."+6 hours"));

Laussy 13:59, 17 April 2011 (UTC)

The closing unordered list tag is actually a second opening tag in the extension code. Ryascolot 20:41, 23 June 2011 (UTC)

Thank you very much for the hack --Volker. :)) When I included once FlaggedRevs-MW1.17-r86547 in my "LocalSettings", I was getting this error:

Erreur interne Detected bug in an extension! Hook FlaggedRevsHooks::onArticleViewHeader has invalid call signature; Parameter 3 to renderTwitterFeed expected to be a reference, value given

Mediawiki 1.17 With your code, everithing is fine!

Lol313 11:30, 21 November 2011 (UTC)

MediaWiki 1.18?
Has anyone managed to make this work yet?

Failing that, are there any other Twitter display extensions that are suitable for MW 1.18? Andy Dingley 19:29, 13 January 2012 (UTC)

Hi, same issue, doesn't work after upgrade to 1.18.1

[Thu Feb 02 13:25:22 2012] [warn] [client xxx.xxx.xxx.xxx] mod_fcgid: stderr: PHP Fatal error: Call to a member function addMessage on a non-object in /path_to_wiki/extensions/TwitterFeed.php on line 79, referer: ... Lol313 12:44, 2 February 2012 (UTC)

yep, fails here too! 178.2.49.183 19:08, 9 March 2012 (UTC)

You just have to take out the $wgMessageCache eg: function wfTwitterFeedExtension { global $wgParser; //$wgMessageCache; $wgParser->setHook("twitterfeed", "renderTwitterFeed"); // $wgMessageCache->addMessage('twitterfeed-bad-id', 'Invalid or protected Twitter RSS supplied: [$1]'); } don't forget the ";" after $wgParser

MediaWiki 1.19
Detected bug in an extension! Hook ConfirmEditHooks::confirmEditMerged has invalid call signature; Parameter 3 to renderTwitterFeed expected to be a reference, value given Change function renderTwitterFeed( $input, $params, &$parser ) { to function renderTwitterFeed( $input, $params, $parser ) {

This works in mediawiki 1.19.2

Twitter changed their API and this widget no longer seems to work
Unless I am missing something (hope I am) it appears Twitter has changed their API and dropped support for XML and RSS (you can read about it here).

Is there a way to fix this or will another method need to be found? 22 October, 2012


 * Hey; here's what you need to do in order to get this working:


 * Go to TwitterFeed.php and line 132. It should look like this;

$xml = "http://twitter.com/statuses/user_timeline/".$id.".rss";


 * Change it to this;

$xml = "https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=".$id;


 * Then, go edit the page where you have the  tag. Change the user ID number into his actual username.


 * Now the feed should work again. However, the format might be different than what it was before, so you may need to edit it further for that. --88.112.175.211 01:06, 10 May 2013 (UTC)