Yesterday I released my newest WordPress plugin: Tweetable. It helps integrate Twitter into your blog. It tweets your posts as they are published and adds a configurable sidebar widget that displays your latest tweets (with optional follower count). The automatic post-tweeting can be configured to use the URL shortener of your choice, and Google Analytics campaign tags can be included.

Tweetable also adds facilities for updating your status and viewing those of your friends’. A Tweet menu option lets you update your status (an included widget for the Dashboard does that too) and keep an eye on your friends’. A Track screen uses the Twitter Search API to keep you up to date on topics of your chosing.
A few other options are available, such as automatic Tweetmeme button inclusion are available as well.
Tweetable does not store your Twitter password in plain text, like some scripts. It uses the OAuth standard to request a set of user tokens from Twitter, which are used to make API requests. So if someone manages to gain access to your database, they don’t get your Twitter password, just a few strings of numbers and letters that become powerless after a quick trip to your Settings page on Twitter.com.
You can download Tweetable from the WordPress plugin repository.









Hi there!
After the update of today I get an "Fatal Error" while reactivating it.
Maybe you could fix it.
Thank you
Asmodiel
I also got a fatal error, plugin could not be activated.
Done! Just tagged and released 1.0.2. It should fix the fatal error.
Any ideas on how to fix the timezone? Mine is wrong, despite having it configured right in WP.
It could have something to do with the server setup? You might want to contact your host about that.
Gosh, I just love the idea of the plugin…installed, went through the wizard and authorized but when I go to Twitter and authorize it takes me back to my blog page with the 'login with Twitter' button showing. When I try to go to settings, it always just displays login with Twitter. The set up won't complete
Maybe you made a mistake during one of the earlier steps? You can reset the wizard and try again by going to yourdomain.com/wp-admin/admin.php?page=tweetable/bind_twitter_account.php&installing=1&reset_account=1&step=1
Thanks for trying…I did that, didn't work.
The app is listed on Twitter's 'my apps', and I always stay logged in so I authorize…it takes me back to the blog, and it just keeps looping.
I think I'll go back to wp -twitter. I have no patience today. I may try again.
Thanks again.
Great plugin Matt. It seems to pack a hell of a lot of functionality into it! I've noticed my Twitter password in plain text in my database before and been a little miffed by that. I think the security of your plugin alone will be enough to make me give it a go!
Glad you appreciate the feature. It's something that's always bothered me about other Twitter plugins, and sites like Twitterfeed. It does add a bit of complexity to the setup process though.
hmm…everything installed right, I assume…but posts don't show up, and it's not listed in my connections folder….
ideas?
This doesn't work. Already tried resetting keys but to no avail.
"it's not listed in my connections"
That sounds like something went wrong during the installation. You can reset and try again by accessing yourdomain.com/wp-admin/admin.php?page=tweetable/bind_twitter_account.php&installing=1&reset_account=1&step=1
grrrr, didn't work
It's still not in the Connections tab of Twitter?
Are you 100% sure you filled the forms out as the plugin expects?
I Just installed tweetable today, version 1.0.4 and now both me and my friend who has this installed – we cannot get it to work. Mine will send a tweet with no link and he is getting a white screen and no tweets at all. Please help…
nvm, i had installed it with WP, and it wasnt working, so i downloaded it to my comp unzipped it, and used my FTP went and activated it and now its working.
I tried the installation wizrd but in the step 4, when I click on the "Sign in with Twitter" button, it wants to go to https://twitter.com/oauth/authorize?oauth_token= where a "Woah there! This page is no longer valid…" error page is shown… am I doing something wrong or is it a bug? (Using wp 2.7.1)
You probably didn't enter something quite as expected during one of the earlier steps, and Tweetable can't make the right request to Twitter as a result. You can try again by pointing your browser to yourdomain.com/wp-admin/admin.php?page=tweetable/bind_twitter_account.php&installing=1&reset_account=1&step=1
Hey I got the same problem. I can't see doing anything wrong.
I'm experiencing the same thing. I thought it was because I'm using WordPress MU, but if it's happening in normal WP installations, then I guess it's something else…
After giving my username, i get this: Fatal error: Call to undefined function curl_init()
What to do, what to do…
It sounds like your server may not have cURL installed. You may want to ask your host about that.
Getting a ton of errors after installing – the twitter registration went fine, my site shows up under the registered applications on twitter, but nothing I post actually gets sent up to twitter.
Any ideas?
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /my/site/wp-content/plugins/tweetable/mh_twitter_class.php on line 59
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: 401 in /my/site/wp-content/plugins/tweetable/mh_twitter_class.php on line 59
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /my/site/wp-content/plugins/tweetable/mh_twitter_class.php on line 59
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /my/site/wp-content/plugins/tweetable/mh_twitter_class.php:59 Stack trace: #0 /my/site/wp-content/plugins/tweetable/mh_twitter_class.php(59): SimpleXMLElement->__construct('401') #1 /my/site/wp-content/plugins/tweetable/admin_menus.php(397): Twitter_API->friends_timeline('', '', '50') #2 /my/site/wp-content/plugins/tweetable/admin_menus.php(145): tweetable_menu_twitter_timeline(Array) #3 [internal function]: tweetable_write_twittermenu('') #4 /my/site/wp-includes/plugin.php(339): call_user_func_array('tweetable_write…', Array) #5 /my/site/wp-admin/admin.php(79): do_action('toplevel_page_t…') #6 {main} thrown in /my/site/wp-content/plugins/tweetable/mh_twitter_class.php on line 59
From the looks of it, Twitter's response to API calls is not parseable as XML, and is probably some kind of error.
Are the tweets of the users you follow showing up on the Tweet page?
yeah it's wierd – everything works except in the wp-admin area, when I go to 'twitter->tweet', underneath the 'update status' area I get the error message above, and whenever I make a post, I get a dump of basically the same error message.
My twitters show up fine on the front page of the site (the ones I've manually done at the twitter site), and the 'track' page shows up fine.
If I try to 'tweet' from the wp-dashboard, it does the whole 'sending' thing and no error messages show up, but the tweet doesn't get logged at the twitter site itself.
Any ideas are greatly appreciated. Thanx in advance,
It seems like requests that require authentication are not being processed properly, which would imply that there was a problem with the keys or something, yet you say that things are listed properly in the connections.
You could try going to the plugin Settings page and clicking the link in the upper right to change the user, and start the setup wizard all over again. Going to twitter.com/oauth_clients you can edit your existing application instead of creating a new one from scratch, if editing is indeed necessary.
My guess is something may not have worked right the first time, and re-doing the setup might fix it.
I had the same problem after I had a heck of a time getting it to install. So I opened the plugin source files to see location of the error and it has to do with this line of code ($xml = new SimpleXmlElement($response);). So I did a search for class SimpleXmlElement and couldn’t find it anywhere. So I believe the problem is that the class doesn’t exist. Anyone know where to find it?
excellent twitter-wordpress plugins
I am now using it on my blog.
thanks
Could you add a feature that appends tracking code to the post permalink before it gets shortened? I'm using Google Analytics and if I could have a permalink like this it would help tell me how many people are clicking my links from Twitter:
Example: http://example.com/post-permalink/?utm_campaign=e…
The tracking code at the end is standard for all posts. After it's appended, the entire URL would be shortened before it gets posted.
There already is such a feature included. Go into Twitter->Settings and check the "Campaign Tracking" field. It will automatically add
"?utm_source=twitter&utm_medium=social&utm_campaign=[POST_TITLE]"
to the end of URLs before shortening them.
I Can not make it to show more than 1 tweet: Everytime I change the "Number of Tweets to Show:" to 5 for example (and save this), it always comes back to the default 1!!!
I will look into this. A new update is inching toward completion anyway, so a fix shouldn't be more than a few days away, hopefully.
Great plugin just what I needed for my site only one thing i would like is the Timezone is incorrect on the widget even tho my twitter and my wp are both set correctly?
Well that's odd. It just takes the timestamp from Twitter and reformats the string into a friendlier number. What timezone are you in?
GMT It's really strange
You know…now that I notice it, they seem to be wrong for me too. I'll have to look into this…
Any news on this its the only thing that making this plugin not quite perfect
It's on my to-do list. I had to work on a more pressing patch though, so I spent a bit of time fixing that instead. (WordPress 2.8.1 users were having issues installing the plugin.)
If you are using the widget, does that mean that it will post tweets originating with Twitter along with the post/tweet from the blog, resulting in double content on the blog page? Or does the widget differentiate between what comes natively from Twitter and what originates from itself?
As of the latest release, it can filter out tweets coming from your blog posts. If you specify an auto-tweet prefix in the settings (e.g. "Blog Post:") the widget will listen for it in your tweets and skip ones with the prefix in it.
Awesome. Thanks. I will give it a go.
I just tried to install today. Looks like a great plugin. But, with the most current version I get an eror and it says I need to be running PHP 5 in order for the plugin to work. I'm with GoDaddy and have no idea how to change that
I did a quick Google and found this: http://help.godaddy.com/article/1083 Hope it helps.
Plugin doesn't work for me – Tweetable setup link "https://twitter.com/oauth/authorize?oauth_token=" gives me
"
Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake.
"
This has been reported in a previous comment here – any help available?
Thanks, Andreas
I still haven't been able to reproduce the issue. My only advice right now is
1. Make sure you didn't make any mistakes in the prior steps. (Particularly in pasting the consumer keys.)
2. Make sure you have cURL installed on your server
3. Make sure your server isn't blocking outbound traffic requests. (E.g. an overly-aggressive firewall.)
Everything works perfect , but there is one problem , if there are 2 or more wordpress admins , they too can tweet from that one account , thats what is a risk
That was intentional. Part of the plan was to allow an account to be shared among higher-ups at a multi-author blog. Tweetable doesn't yet support multiple authors, either. It may sometime in the future, but for now it's limited to one Twitter account.
Is it possible to display the Tweet button on the front of the blog rather than on each blog post? Similar to how Sociable works.
It's possible, if you modify the code a little. In tweetable.php there's a function called "tweetable_add_tweetmeme." There's a line inside it that looks like this:
if (is_single() && $installed) {
Change it to this and you're all set:
if ($installed) {
redwall_hp, thank you for that instruction!
With Categories & Tags, Tweetable would add basic HTML to the end of shorter posts if it was left as if ($installed) {. To remedy this, I changed it into the following:
if (is_single() && $installed || is_home() && $installed) {
yeah
that feature would be excellent !!
Fantastic thank you.
It's really amazing and unbelievable for me, it's really Automatic
The plugin is great, but I would see feature to choice post to put on twitter on edit panel. Too, add bit.ly service.
Regards.
Bit.ly support will be in the next release of the plugin for sure. I actually finished that part of the code, but I have some other things I need to fix before releasing it.
And I will consider your other suggestion.
Just installed it and working great, thanks … exactly for timestamp issue. Both my WP and widget times are mapped correctly.
Any ideas on the issue (looks like the same one from July)?
Thanks much.
Hello, when installing i get this in the tweetable admin site
Invalid argument supplied for foreach() in /wp-content/plugins/tweetable/admin_menus.php on line 505
Many thanks for help.
Monty
I initially had the problems most people talked about. After putting my twitter configuration, it brought me back to the Step 4 where i was asked to login to twitter. I later found out I didn’t check the ‘read & write’ box in my twitter app creation page.
Thanks so much for this Matt
Hi there, have just got to step four of your plugin installation. I verify the blog with Twitter and then it redirects me back to the front page of my WP installation.
My blog does live in a subfolder if this could be causing a problem?
With havin so much written content do you ever run into any issues of plagorism or copyright violation? My website has a lot of completely unique content I’ve either authored myself or outsourced but it seems a lot of it is popping it up all over the web without my agreement. Do you know any ways to help protect against content from being ripped off? I’d genuinely appreciate it.
There isn’t much you can do proactively. But when you come across someone ripping off your content, here’s a good guide on what to do: http://www.problogger.net/arch.....copyright/
I went through all the steps, and am at the final authorization step (Step 4). It tells me to “Click the button below, and you will be taken to Twitter.com. If you’re already logged in, you will be presented with the option to authorize your blog. Press the button to do so, and you will come right back here.”
I click the Twitter button, and I authorize the app. Then it tells me to go back to my site and enter the supplied 7-digit pin in order to complete the authorization process.
However, I see nothing anywhere that is asking for a pin! And nothing takes me back to my site, where I started. And when I go back to my site manually, there is nowhere to put a pin number.