Tweetly Updater

Tweetly Updater is a Wordpress plugin that updates Twitter when you create or edit a blog entry. It uses the bit.ly service for short urls. The plugin uses bit.ly with the history option, so you can track the clicks on the urls inside your twitter posts on your bit.ly homepage.

bit.ly statistics

The plugin is based on ideas and code by Ingo “Ingoal” Hildebrandt, Marco Luthe and Victoria Chan. The code is licensed undder the MIT licence.

Download & Support:

For releases or source code see the projects Wordpress.org or Google Code page.

Please use the issue tracker on the Google Code page to report bugs or make suggestions. It is really hard to follow issues that are reported only in the comments.

Do you like the plugin? You can support me with a donation:

Flattr

Share with Bit.ly


Comments

Comment by kortina — 18.1.2009 @ 18:59

Love it!

Comment by Dave — 22.1.2009 @ 19:37

I like this plugin a lot and use it on a few blogs but there’s a major bug that causes tweets to be made when a post is edited even if you have that option unchecked in the admin interface.

Comment by michael — 23.1.2009 @ 8:56

Hi, Dave. Thank you for your bug report and your fixes on the Google code site. I will include this on the weekend.

Comment by baron — 24.1.2009 @ 18:59

hi. Thanks for plugin

perfect.

Regards

Comment by Dave — 29.1.2009 @ 17:59

Feature suggestion: Change the options to be on each users profile page. That way you can set tweets to be made only for users who have the option turned on in their profile page.

Comment by Alexander — 12.3.2009 @ 21:36

Really like this plug-in, however it does not tweet letter with accents correctly such as á or é, making it a little unconfortable por tweeting in other languages other than english.

Comment by Ozberk — 26.3.2009 @ 16:59

Hey Dave,

Thanks for the great plug-in.

However there’s a small bug I had to hack the code a little bit. You shouldn’t encode the title with utf-8 if the blog encoding is already utf-8.

@Alexander we had the same problem and fixed it by changing line 82 in tweetly_updater.php

from:

$status = utf8_encode($sentence);

to:

$status = $sentence;

Cheers

Comment by michael — 26.3.2009 @ 18:11

@Ozberk & Alexander: I will look into this on the weekend and fix it for the next version. Thank you for your input.

Comment by Zuliady Azwin — 14.5.2009 @ 9:34

@Michael

i like this blog tool, i will use this in my blog.

http://zuliady.azwin.web.id

Thank you

Comment by David Pinto — 18.5.2009 @ 20:51

Is there a way to add other tags besides title?

Comment by Kim Beasley — 20.5.2009 @ 15:59

In the file, tweetly_updater.php, there are problems with the “@” sign on lines 66 & 75. These lines are adding an “@” sign to the link and it’s causing problems with the link (it’s breaking the link for some people on Twitter). So I removed the (@) sign and it works find now.

Comment by Kim Beasley — 20.5.2009 @ 21:52

When the tweets that are sent by Tweetly Updater hit my account, they are only 60 characters long. I need to know how to increase this number and what the maximum is. Thanks!

Comment by michael — 24.5.2009 @ 11:13

There is a new realease (http://www.zepan.org/2009/05/24/tweetly-updater-112/) that fixes the encoding problem and eliminates the @ character.

@kim: I will look into this 60 characters thing.

Comment by JesusFreak — 15.6.2009 @ 6:30

Thanks for this.

You can follow on twitter @ http://www.twitter.com/adesojiadegbulu will follow u back ASAP

Comment by Tribak — 24.6.2009 @ 4:11

Maybe the first category name somewhere in the tweet will be good, because just the title isn\’t always a descriptive way to say what are you linking to

this is what i\’ve done:
after title variable initialization
$cat=get_the_category($post_ID);
$categories = $cat[0]->cat_name;

and this in the variable concatenation:
$thisposttitle = $categories . \’ | \’ .$thisposttitle . \’ \’ . $shortlink;

Comment by Dave — 30.6.2009 @ 15:33

Version 1.1.2 of this plugin is sending Twitter updates when updating a post even if this feature is turned off in the options.

Comment by Will Castillo — 28.7.2009 @ 21:23

Dear friend,

Thanks for sharing your plugin.

I’m using it and it’s quite useful.

I would like to add my two cents. I noticed that your plugin add a new metakey everytime a post is saved. It is absolutelly transparent for most users but a few of them could be picky with it.

I just changed lines 87-88 to the following ones:
$metaShortLink = get_post_meta($post_ID, “tweetlyUpdater_bitlyUrl”, true);
if ($metaShortLink == ”) {
if (!add_post_meta($post_ID, “tweetlyUpdater_bitlyUrl”, $shortlink, false)) {
error_log(“Could not add bitly url to meta data”);
}
}

I hope you can implement it in the next version so I don’t have to hack it again!!!

All best
Will

Comment by Will Castillo — 29.7.2009 @ 1:43

It’s me again.

My solution fail if the permalink is changed so the plugin should save the original permalink and create a new metadata only if it changes.

Comment by daniel — 7.8.2009 @ 12:19

I think there is a problem with your Plug-in. After the Twitter update from yesterday the plug-in no longer works. In the admin I get:
You twitter login could not be verified!

If I go to the twitter site I can login without any problem.

Comment by Christopher — 24.8.2009 @ 22:09

Hi, I use a plugin that allows me to blog in more than one language but your plugin doesn’t filter out the HTML comments that show the language. Could you please add a filter to the title to remove anything in html comments?

Comment by McM — 1.9.2009 @ 19:25

Hi, I have the same problem than daniel :
“Your twitter login could not be verified”
but my login & password are correct

Comment by buZz — 6.12.2009 @ 20:00

Hello,

is it possible to post article tags to twitter like #title#/#firstcategory# -> #firsttag# ?!

Comment by Justin Korn — 30.12.2009 @ 21:28

Been using this plugin for a few months and really like it, though, I just realized that any scheduled post get posted to Twitter immediately. This is quite a big bug.

Hope this is a quick fix.

Happy New Year,
Justin

Comment by michael — 3.1.2010 @ 14:30

@JustinKorn: Please see the new release 1.2.1, this should fix the problem: http://bit.ly/8DsUvB

Comment by Hugh — 6.1.2010 @ 2:52

Great plugin. Very easy to set up! Works like a CHARM!

Comment by James — 7.1.2010 @ 7:37

your plugin has been recommended by someone I trust with my internet presence @ErinBlaskie. If it’s good enough for her then it’s good enough for me.

Comment by tamara — 1.2.2010 @ 23:15

Can you advise on this issue.

“Your php installation doesn’t support the json_decode functionality.”

Do I need to change something at my end?

Thank you

Comment by michael — 2.2.2010 @ 9:00

@tamara: I think your PHP installation is outdated. You need PHP 5 >= 5.2.0 or the PECL extension json >= 1.2.0 (http://bit.ly/db0DjK).

Comment by tamara — 2.2.2010 @ 20:49

Thank you for your advice, I’ll look into that.

Comment by mar — 10.2.2010 @ 13:28

Great plugin.
But i want to ask one question. Is it possible to make that the plugin don`t use bit.ly service and put full website adress?

Comment by michael — 10.2.2010 @ 14:54

Hi mar. This plugin will always use bit.ly and only bit.ly. I build the plugin to use the bit.ly stats for my tweeted links.

Comment by Sandy — 19.2.2010 @ 5:23

Michael -

Quick question on when tweetly will send. If I create a new post that is private, then edit it then finally set to public I’m not seeing a tweet when I flip it. I’m not sure if it is supposed to send one but any way to get that going or have a check box to ‘force’ tweet if that makes sense?

Thanks for you hard work too!

Sandy

Comment by michael — 19.2.2010 @ 12:17

Hi Sandy, at the moment Tweetly Updater triggers at the following transitions:

future to publish
new to publish
draft to publish
pending to publish
publish to publish

I will look into the WP API if there’s a way to trigger private to public. In the meantime you could leave your unfinished post just in draft status before publishing?

Comment by kaaliss — 26.2.2010 @ 15:15

Hi,

I just installed the plugin and it’s tweeting posts without bit.ly links. It’s updating the title and nothing else.

I introduced my bit.ly info, but I don’t know what’s happening.

In the setup page, it says that the plugin wil send updates as “#title#”.

does it have to be like “#title# #link#” or something?

thanks for the plugin anyway :)

Comment by Rick Harrison — 7.3.2010 @ 12:12

Michael,

I find this possibly the best plugin for twitter available.

One quick question… I have set up a site, http://www.reviewrecruiter.com.au which is using a review engine and users are able to post reviews (which are stored under comments). Is there any way that I can make the comment tweeted?

Rick.

Comment by Valarie32TURNER — 11.3.2010 @ 5:33

Don’t you recognize that it is the best time to get the mortgage loans, which would make your dreams come true.

Comment by Pat — 15.3.2010 @ 14:17

Hi i am trying to use it on this website, but it keeps saying it cant verify my bit.ly log-in. I keep cutting and pasting the code, but no joy.
Any ideas?
Cheers
Pat

Comment by Nicodumas — 5.4.2010 @ 5:43

Wonder if any one has found a way to add the authors name into the post. I have been toying with this for a bit. I am prolly overlooking something simple.

Comment by Ben — 9.4.2010 @ 19:49

Awesome, just what I was looking for! Thanks a bunch!

~ Regards.

Comment by Jessica — 14.4.2010 @ 4:57

Hi, I’m just wondering if I can let it tweet only new posts? I don’t wanna show page updates..

Comment by Jessica — 22.4.2010 @ 5:26

ah.. anyone?

Comment by Jeff — 29.4.2010 @ 17:54

Jessica, there is a setting to turn it off for updates, so it will only twitter new blog posts. Just make sure you DESELECT the tickbox for “Update Twitter when the an old post has been edited”

Comment by Jessica — 6.5.2010 @ 13:21

thanks jeff, but i mean i wanna tweet only posts. not pages. can i do that??

Comment by AN24 — 7.5.2010 @ 11:16

Das Plugin funktioniert sehr gut. Jedoch werden Tweets ausgeliefert bevor das Wordpress-Plugin Duplicate Posts Eraser doppelte / mehrfache Posts löschen kann. Gibt es hierfür eine Lösung?

Comment by Seth — 11.5.2010 @ 6:06

I see a few comments regarding the bug I was about to submit, however, I still seem to have the issue when the bug was submitted in January. Are you going to update the plugin to handle the update on page update bug?

Comment by south florida luxury home builder — 15.5.2010 @ 16:31

Nice information. Thank you for the guide you gave to me. It will help a lot.

Comment by Kwiaciarnia — 16.5.2010 @ 13:14

yes i added this to may wordpress blog long time ago and its works!

Comment by Mike — 25.5.2010 @ 13:48

Hi Tweetly Updater is working well. But why do my post titles appear in larger font when my blog posts update on twitter? Thanks

Comment by michael — 25.5.2010 @ 13:59

@Mike TweetlyUpdater has no influence on the rendering of your blog posts. Can you give more details?

Comment by Mike — 26.5.2010 @ 8:04

Hey Michael, My apologies for my earlier question. As per usual, Twitter just displays the most recent post in a larger format. Duh

I must have been having a slow brain day and the plugin is working fine for me. Many thanks.

Comment by Soğutma Büyüsü — 31.5.2010 @ 15:23

yes i added this to may wordpress blog long time ago and its works!

Comment by Matt Hopkins — 4.6.2010 @ 16:11

This is a great plugin – thank you. I have a problem with it however, where it is posting updates to twitter when new pages are created (not just posts). Is there an update that prevents this from occuring?

Thanks in advance

Comment by Cruelty — 19.6.2010 @ 0:23

Auf auf! WP-3.0-Kompatibel machen! :p

Comment by Francois — 19.6.2010 @ 1:28

Seems like there is a problem with the new Wordpress 3.0. When you create a menu and add new links into it, seems like it’s tweeting it !! I think that it should not. What do you think ?

Comment by martijn — 22.6.2010 @ 12:25

It seems that with 3.0 it wont tweet the tags anymore….

Comment by @KarmaTiger — 23.6.2010 @ 0:13

Where is the download for this plugin? I can’t find a link anywhere on this page

Comment by Francois — 23.6.2010 @ 19:43
Comment by Kash — 25.6.2010 @ 2:06

First off, this is an awesome plug-in!

I know this is probably going in the wrong place, but to get the category and tags to tweet with 3.0 change line 100 of the tweetly_update.php file to:
$categories = get_the_category($post->ID);

and line 110 to:
$tags = get_the_tags($post->ID);

Hope that helps (sorry if I’m posting in the wrong place)!

Cheers,
Kash

Comment by martijn — 25.6.2010 @ 15:19

it worked!!!

Comment by Büyü — 29.6.2010 @ 10:20

Where is the download for this plugin? I can’t find a link anywhere on this page

Comment by Kash — 29.6.2010 @ 19:27
Comment by Artem Russakovskii — 15.7.2010 @ 17:39

Hi Michael. Adding another vote for a proper category/tag fix. Thanks!

Comment by Jason — 16.7.2010 @ 5:32

Hi there!

Love the plugin. Is there a way to limit the rate at which tweets are sent out? For example trigger a tweet every 5 minutes instead of all at once?

Thanks!

Comment by martijn — 22.7.2010 @ 12:22

i have another problem. When I schedule a post the categories are not tweeted

Comment by Michael Zehrer — 23.7.2010 @ 12:44

Hi commenters, I’m currently on holidays. There will be a new version when I’m back in a week or so. Please leave your bugs and suggestions at the Google Code issue tracker http://code.google.com/p/tweetlyupdater/issues/list

Comment by Rhiannon — 20.8.2010 @ 12:24

Will this continue to work after the end of the month when Twitter makes its changes? Or are you making an update for that?

Comment by Voipo Reviews — 21.8.2010 @ 1:14

Great plugin, thanks for sharing it :)

Comment by michael — 22.8.2010 @ 14:40

Published version 1.3.0: http://bit.ly/9EXNyo

Comment by martijn — 22.8.2010 @ 19:01

thanks for the update but you didnt fix the earlier problem:

when scheduling a post the tags are not used as hashtags in de tweet.

Comment by Jason Saggers — 23.8.2010 @ 4:25

Hi there, I just updated to the latest version and there is a few new sections, when I save the options I get the following error message.
“Could not bind to your twitter account, please try again!”
Any suggestions?
I have linked it with my twitter account fine.

Comment by Michael Zehrer — 23.8.2010 @ 8:19

@Jason That means that the plugin received an error response from Twitter after you authorized the application (it needs to get it’s custom credentials). The code is trying to connect to Twitter in the background, maybe the connection is blocked. Can you tell me more about your installation?

Comment by Nikki Wall — 23.8.2010 @ 12:59

Hi Michael! I’m getting the same error all of a sudden today. I installed the plugin two days ago and it worked fine until today. I input all the information again and it’s doing the same thing. I can, if you would like, create a temporary admin account for you so you could take a look at the coding or whatever? Thanks in advance!

Comment by martijn — 23.8.2010 @ 13:29

@Michael when scheduling a post the tags are not used as hashtags in de tweet.

Comment by michael — 23.8.2010 @ 13:50

@Nikki Do you use the new 1.3.0 Version of the plugin?

Comment by Simone — 23.8.2010 @ 16:46

Hello, after the update, i get the same error “Could not bind to your twitter account, please try again!

Your bit.ly login could not be verified!”
i tried twice to delete/reinstall the plugin, and to revoke authotization fro twitter, with no luck :(
im using last WP version

Comment by michael — 23.8.2010 @ 16:53

@Simone That error occurs if the plugin can not connect to the Bitly or Twitter services. Is there anything else that you have changed in your setup (WP Version, PHP Version?).

Comment by Simone — 23.8.2010 @ 17:04

no i did not changed anything, btw i resolved this way:
on bit.ly ive linked the account to twitter, then ive revoked, and on the config of your plugin ive reinserted the API from Bit.ly, and now everyhing is going fine :)

Comment by Brian — 24.8.2010 @ 15:33

Stopped working for me after upgrading to the new version. Says that my Twitter login could not be verified. When I click to login, I get a 500 internal server error.

Comment by martijn — 24.8.2010 @ 20:31

:(

Comment by Michael Zehrer — 24.8.2010 @ 20:33

@Brian is that 500 Error generated by Twitter or your server?

Comment by martijn — 29.8.2010 @ 21:25

will no one solve the schedule bug?

Comment by Joseph Peterson — 1.9.2010 @ 8:08

Michael, today my Tweetly updater stopped connecting with Twitter. Apparently They changed from Basic Authentication (Bauth) to Oauth. Will there be an update to solve this soon?

Comment by Michael Zehrer — 1.9.2010 @ 8:36

@Joseph Please see the new version [http://bit.ly/9EXNyo], it has Twitter Oauth support.

Comment by Mike Andrew — 2.9.2010 @ 2:09

Hi Michael,

Love the plug in by the way, but an issue I’ve noticed when updating on some of my blogs with the update. When clicking on the sign up with Twitter icon it sends me to a page not found or 404 page on my blog and not to Twitter so I can authorise my account. Do i need to edit something in the code? They are all Wordpress.org templates.

Regards

Mike

Comment by Michael Zehrer — 2.9.2010 @ 7:49

@Mike Please add some more details to the issue I openend for this [http://code.google.com/p/tweetlyupdater/issues/detail?id=23].

RSS feed for comments on this post.


Leave a comment

Additional comments powered by BackType