Forums | Mahara Community
Developers
/
Twitter API 1.1
21 June 2013, 18:37
I think the Twitter API update broke the twitter plug-in in mahara. It looks like its not an official plug-in but I was wondering if anyone was working on that, or if I should go ahead and just try to redo the code to work with the new API. Doesn't seem terribly hard, but everytime I say that a one day project turns into two weeks.
21 June 2013, 19:56
It's worth pointing out that the new method of working with twitter requires that you have access to the account you are trying to display. I've had to ask customers for their password so I can restore operation, something which I think is TOTALLY unacceptable. We should not need the 'security code' created on a customers twitter account!23 June 2013, 14:21
Hi Dave,
Which Twitter plugin do you mean? There are two. https://wiki.mahara.org/index.php/Plugins list both of them as well as the plugin developers. Gregor is active in the community and usually reads the forums as well and responds to problems. Florian left the University of Vienna, but Klaus https://twitter.com/khimpsl may have found someone to update the plugin if it is the one that has problems as they are using it on their platform.
Cheers
Kristina
25 June 2013, 6:20
Thanks! I'm talking about this one
- Twitter by Florian Eder - embeds Twitters Tweets or Twitter Timeline
I think the other one still works just fine. But Twitter changed how you embed Tweets on your own page. So I think this plugin is broken for awhile. I did post a comment on the plugin page just now. Maybe he will see it
25 June 2013, 23:56
Hi Dave,
It seems to be a simple case of replacing this line in twitter/twitter_api/twitteroauth.php:
public $host = "https://api.twitter.com/1/";
with
public $host = "https://api.twitter.com/1.1/";
Hope it helps,
Mike
27 June 2013, 5:42
Thanks Mike! That worked... kinda. Individual tweets don't work. But I dont think they did before for us either. Do they work for you?
02 July 2013, 3:07
Hi Dave,
I hadn't tested them before, but the individual tweets seem to be working OK here. We must have slightly different setups. The plugin is showing some PHP warnings here though...
Mike