« New Twitter Bookmarklet | Main | Share Blog Comments on Twitter (plus OAuth Support) »

Comment on Blogs with your Twitter Account

Twitter Commenters is a plugin for Movable Type that enables commenters to sign-in and comment on your blog using their Twitter account.

Twitter comment authentication works like other auth methods in MT -- once you have installed the plugin you can enable Twitter as one of the auth options, as shown in the image above.

How It Works

When the user enters their Twitter username and password in the form (shown above), the plugin submits those to the Twitter API to verfiy the credentials. If verified, the user can then post comments using their Twitter account. Their Twitter 'display name' will be shown beside their comments, and their Twitter avatar (profile photo) will be imported and shown beside their comments (if userpics are enabled in your templates).

Note that users' Twitter passwords are not stored in the MT database. An upcoming version of this plugin will enable Twitter's new OAuth support, in which case passwords would never be sent to MT at all. That version will like have an option for commenters to cc. their comments to their Twitter account. Stay tuned.

Try it Now

Click here to login with your Twitter account. After logging in, you will be returned to this entry, and you can leave a comment below.

Requirements

  • Net::Twitter perl module (included with plugin)
  • JSON::Any perl (included with plugin)

Note: Net::Twitter requires newer versions of the libwww-perl collection of Perl modules. I am not sure what the minimum version required is, but on my server, I had to upgrade in order to get Net::Twitter to work. So if you get strange errors, try installing the latest version in your 'extlib' directory of your MT.

Download Twitter Commenters

Download Now
Downloads: 298

Installation

  1. Upload the contents of the 'plugins' folder to the 'plugins' directory for your MT install.
  2. Upload the contents of the 'mt-static' folder to your 'mt-static' directory.
  3. For each blog you want to enable, go to Preferences > Registration and check the box for 'Twitter'.

As always, feedback is appreciated.

Follow @mthacks on Twitter for updates and other MT and Twitter hacks.

Rate this entry:

  • Currently 2.7/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 2.7/5 (17 votes cast). Powered by the Ajax Rating plugin.

Comments (17)

Here is an example comment from my Twitter account (@mthacks)

Wonderful plugin. Looking forward to the OAuth version very much.

it's look great.

Hmm. Getting this error when I try to use it on my blog:

JSON::Any version 1.19 required--this is only version 1.18

I've upgraded the JSON::Any on my host to 1.19, but the error persists.

Getting closer to success, but not there yet. Error:could not verify Twitter username and password.

I am having the same issue with JSON as Kate Ingram. I've upgraded JSON with CPAN through my Cpanel and also made sure I had the latest version in my MT's extlib. Pretty much at a loss now.

test MT comment via Twitter OAuth #mt

@geekmum are you still getting that error?

For those getting the JSON::Any error, the problem is that MT is finding an older version, even though 1.19 is included with this plugin. Most likely, you have the FaceBookCommenters plugin installed -- if so, go to:

/plugins/FaceBookCommenters/extlib/

and delete the the "JSON" folder. Don't worry, this won't break anything, but will prevent this conflict and both plugins should then work.

Anonymous:

check check sibilance...

I am having the same issue with JSON as Kate Ingram. I've upgraded JSON with CPAN through my Cpanel and also made sure I had the latest version in my MT's extlib http://www.chat.t7b.com/123.htm

am having the same issue with JSON as Kate Ingram. I've upgraded JSON with CPAN through my Cpanel and also made sure I had the latest version in my MT's extlib. Pretty much at a loss now
http://www.t7b.com/dlil/show80156.html

I've installed the plugin per the instructions (as well as creating the application within Twitter), however I'm getting a strange error (even after updating the libwww-perl modules (which I'm not sure I did correctly in the first place). The error I am getting is this: Can't call method "permalink" on an undefined value

Anybody know what I've doing wrong? Thanks for your help, this looks like a GREAT plugin.

Hi Mark, thanks for this plugin. I had some errors but you've updated the entry to give very helpful instruction regarding lib-wwwperl. I no longer have that error.

I'm currently getting a "Can't call method "permalink" on an undefined value" error. I've set the config file to debug mode and it points to ~/TwitterCommenters/lib/MT/Auth/Twitter.pm line 80.

I know it's saying a value hasn't been added to permalink (which I'm not sure is intended to be a method there) but I'm not good enough with perl to know whether this is something in the script or something I've misconfigured in MT that's not passing info along. Any ideas?

Riderwear:

That's Great news thanks for tell me about this.

Motorcycle Jackets

yah i am greatfull too for sharing all these.

I dream about you evey night
I shiver when your in sight
I long to hold you close n tight
I wanna be there with all my might
I m just hoping I'm the girl whos right

Post a comment