Microblogging (Twitter,Identica) does not tweet anymore

Creating and modifying plugins.
Post Reply
Riipa
Regular
Posts: 6
Joined: Thu Sep 16, 2010 12:43 pm

Microblogging (Twitter,Identica) does not tweet anymore

Post by Riipa »

Hi, I'm using "Microblogging (Twitter,Identica)" to tweet about new blog posts and after twitter changing their policy this plugin does not work for me.
Are there any plans to adapt the plugin to Twitter's new policies/techniques?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Microblogging (Twitter,Identica) does not tweet anymore

Post by yellowled »

Riipa wrote:Hi, I'm using "Microblogging (Twitter,Identica)" to tweet about new blog posts and after twitter changing their policy this plugin does not work for me.
That's because Twitter has switched to oauth authentification which unfortunately isn't implemented in the plugin yet.
Riipa wrote:Are there any plans to adapt the plugin to Twitter's new policies/techniques?
There's an experimental version of the plugin available (http://www.webmaster-tagebuch.de/2010/0 ... erung.html, German only site, install at your own risk), which still seems to be work in progress at best.

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Microblogging (Twitter,Identica) does not tweet anymore

Post by garvinhicking »

Hi!

The current maintainer is working on the OAuth implementation; it has a few things left to be covered, I'll try to see what the progress is :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Riipa
Regular
Posts: 6
Joined: Thu Sep 16, 2010 12:43 pm

Re: Microblogging (Twitter,Identica) does not tweet anymore

Post by Riipa »

Thanks for your quick reply guys! Very much appreciated!
mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 9:35 pm
Location: Wiesbaden, Germany
Contact:

Re: Microblogging (Twitter,Identica) does not tweet anymore

Post by mattsches »

Ok, ich hab OAuth schonmal implementiert, allerdings mittels Zend_Oauth.

Hab auch schon einen kleinen Vortrag bei uns in der PHP Usergroup gehalten, Slides hier. Vielleicht helfen die schon weiter?

Ich checke mir das Plugin mal aus bzw., Garvin, hast du schon Code in Progress?

Im Prinzip ist das ein zweistufiger Prozess:

Der Consumer, also in unserem Fall S9y, fragt einen Request Token bei Twitter an und speichert den in der Session. Voraussetzung dafür ist, dass Consumer-Key und Consumer-Secret schon vorhanden sind. Die bekommt man von Twitter, wenn man sich dort einloggt und die App registriert (Link hab ich gerade nicht zur Hand).

Ist der Request-Token gespeichert, wird damit und mit einer Redirect-URL zu twitter.com/oauth geleitet. Dort muss man sich dann einloggen und auf Allow klicken. Twitter leitet dann zu S9y zurück und liefert den Access Token mit. Der wird wieder gespeichert, während wir den Request Token nicht mehr benötigen. Aber mit dem Access Token können wir jetzt loslegen und die Twitter-API ansprechen.

Mit einer fertigen Lib ist sowas natürlich recht einfach zu bewerkstelligen, aber auch "zu Fuß" dürfte das machbar sein. Eigentlich werden ja nur Requests mit ein paar Parametern hin- und hergeschickt.

- mattsches
Post Reply