Tweet This, a WordPress Plugin for Twitter [1.8.3]

Disclaimer added 2014-10-03: I have not updated Tweet This since 2011-07-05 and lost interest in maintaining it. It has outstanding bugs and probably doesn’t even work work properly anymore due to changes to the Twitter API.

Download Tweet This 1.8.3 [0.8MB .zip]

Popular Twitter plugin inserts “Tweet This” links so your readers can share posts with one click. Can automatically tweet new posts via OAuth. Allows you to publish and schedule tweets from a new “Write Tweet” page. Supports 10 URL shorteners including Bit.ly, Su.pr, and TinyURL. Includes options for 20 social networks including Facebook, Bebo, and MySpace. Includes the Wickett Twitter Widget for your sidebar and many other options.


1.8.3: 2011-07-05: Small update to fix compatibility with WordPress 3.2.


Upgrading from 1.8.2 to 1.8.3

1. Upload the new /tweet-this/ folder over the old folder in your plugins folder.
2. Tweet This 1.8.3 is installed.

General Information

Tweeting a post on Twitter takes up a lot of space, because URLs quickly eat up your 140 characters. While your readers might copy the permalink, go to Bit.ly or TinyURL, shorten and copy the new URL, go to Twitter, and paste it into the status box, this plugin merges all that into one step.

This plugin makes short URLs like http:/example.com/?p=1234, then displays a link to Twitter for each post, with an optional icon (20 choices). This is done automatically for each post as needed. You can choose a URL shortener including Adjix.com, B2l.me, Bit.ly, Is.gd, Metamark.net, SnipURL.com, Su.pr, TinyURL.com, and Tweetburner.com. Each shortened URL is cached as a custom field in the postmeta table to keep load times fast. The cached records are updated or deleted as needed when you edit a post’s permalink, delete a post, change your site’s permalink structure, or change URL services. In WP 3.0 or later, Tweet This hooks the short URLs into the get_shortlink filter.

This plugin can also tweet new blog posts automatically, if you provide your Twitter credentials in the options. Then a “Send to Twitter” checkbox appears when writing a new post, along with a text box so you can change the tweet text for that specific blog post. As of 1.7, OAuth is used.

Unlike Tweetmeme, ShareThis, and other Twitter plugins, Tweet This inserts links without JavaScript, iFrames, or third-party dependencies. An example: http://twitter.com/home/?status=Example+Post+http://example.com/?p=1234

Copyright 2008 – 2011 Richard X. Thripp (email: richardxthripp@thripp.com)
Released under Version 2 of the GNU General Public License as published by
the Free Software Foundation, or, at your option, any later version.

Tweet This Version History

Tweet This Blogs

Tweet This Icons

Tweet This Wiki on Thripp.org

Tweet This on WordPress.org

Tweet This Installation

Before you begin, please make sure your server has PHP 5 and Curl enabled. While you can use Tweet This on PHP 4, all OAuth functions require PHP 5. Tweet This requires WordPress 1.5 minimum, with the following exceptions:

1. Importing exported options requires WP 2.0.
2. Automatic tweeting requires WP 2.7.
3. The Twitter Updates widget requires WP 2.8.
4. Adding short URLs to the get_shortlink filter requires WP 3.0.
5. Moving the Tweet This box around the Write Post page requires WP 3.0.

If you are installing Tweet This for the first time, follow these steps:

1. Upload the `tweet-this` folder to `/wp-content/plugins/`.
2. If you’re using WordPress MU and want this plugin active for all blogs, move `tweet-this.php` to `/wp-content/mu-plugins/` at this point.
3. Else, activate the plugin through the ‘Plugins’ menu in WordPress.
4. Tweet This icons should automatically appear on every post and page! Go to Settings > Tweet This to change settings and set up auto-tweets.
5. Optionally, delete readme.txt and the screenshots folder to save space.

Tweet This Donations

If you like Tweet This, consider donating $5.00, $10.00, or a larger amount via PayPal. As of Feb. 22, 2010, I have received $94 in donations since the initial release of Tweet This in Sept. 2008.

2011-02-22: $25.00 from Canopus Research Inc.
2011-02-17: $10.00 from Berend de Meyer.
2011-01-20: $5.00 from Nigel Boulton.
2010-10-27: $2.00 from JJ Soule.
2010-10-24: $10.00 from Linda C.
2010-10-20: $10.00 from Gareth Davies
2010-10-08: $1.00 from Tache Madalin
2010-10-01: $5.00 from Marcos Ramos
2010-09-20: $10.00 from Linda Worthington
2010-09-18: $1.00 from James Magary
2010-09-15: $10.00 from Miter Saw Reviews
2010-09-15: $5.00 from Kinoshita Communications LLC

Tweet This Screenshots

Screenshot 1

1. Tweet This options page: all sections closed.

Screenshot 2

2. Tweet This options page: all sections opened.

Screenshot 3

3. The Write Tweet page, having just published a tweet.

Screenshot 4

4. A post with Tweet This links; Twitter Web API and Share API.

Screenshot 5

5. Publishing a tweet alongside a new post.

Screenshot 6

6. The Twitter Updates widget included with Tweet This.

Frequently Asked Questions

Acknowledgements and To-Do List

Download Tweet This 1.8.3 [0.8MB .zip]

Testking offers fail proof 640-802 exam preparation with help of 640-863 notes, 640-816 study guide, 642-072 dumps and 642-145 practice test.

973 thoughts on “Tweet This, a WordPress Plugin for Twitter [1.8.3]

  1. Pingback: 205 Excelentes aplicaciones pata Twitter | Fran Barbero | Coach Personal y Profesional

  2. Excellent pluggin ! Thanks for this..
    I have just downloaded and still testing this in my site Indian Ayurvedic News, Articles and Videos

    Unfortunately, auto tweet option is not working for manual posting and cheduled posting( even test auto tweet also – authenticaltion failed ! ) . I have crosschecked the twitter keys many times and it is all correct !. My WP is 3.0.5. Have you experienced any issues like that?

    Thanks
    Vinsan
    Ayurveda in India
    Twitter page : Indian Ayurveda Tweets

    • Your web host probably has the modules you need disabled. Make sure PHP has allow_url_fopen, Curl, and the other default modules installed and activated. I’ve not experienced the issues you are having, but you may also want to try upgrading to WP 3.1.

  3. Pingback: #Twitter: 250 aplicaciones asociadas (III) | Nuevas Tecnologías SoMaMFyC

    • I don’t know for sure, but I think it may have something to do with your theme. Try a different theme and see if the Tweet This image/links appear!

  4. Pingback: porreresdf

  5. Hi! Thank you for a plugin! I use v 1.8.1/
    1. it do not understand сyrillic… I write in “WEB/SHARE Link Title Attribute or [BLANK] for none:” – “Кирилиця” – and afrer saving I see : “Ð�иÑ�илиÑ�Ñ�!”
    2. And “Share Links” work only in “Page”, I have permalinks “/%category%/%postname%.htm”

  6. will these documents also be readable with mobiles? because i often find that when you enlarge the characters the lines get longer. thus you’d have to scroll sideways line by line – no one can READ like that. are they going to consider that the future will be more mobile by the months? that would be nice.

  7. Pingback: Assignment #3 – Digital Me

  8. Hi, great plug-in! Newbie in WP-land ;-D

    Suggestion for future updates would be more stylisch buttons to choose from. What I realy like are dark-grey buttons with a hoover ik the original color of the button i.e blue for facebook. Could you add a “RESPECT!” button for our Dutch HYVES? Would be GREAT!

    Thanks again for this great plugin! Will donate $10,00 for your work!

    BTW, my JingJang Twitter widget is not working at all, checked the CURL on my ISP and is up-and-running! Any ideas?

    Greetz & Cheers! Berend

    • Thanks, I’ll read up on Dutch and start working soon! Hopefully this weekend I can dedicate to PHP and README coding for Tweet This 1.8.2.

    • P.S.: Make sure allow_url_fopen is also allowed. It’s best to have that enabled in your PHP configuration in addition to having the CURL module installed. And that’s a web host, not an ISP (Internet Service Provider).

      • Hi Richard, for now I’m happy with the Twitter / Profile Widget [http://twitter.com/about/resources/widgets/widget_profile]
        For now I can post my Tweets on my website. I’ll call the host about the CURL etc… Cheers!

  9. I just updated to the latest TweetThis, and also updated WP to the latest. Now when I click my TweetThis button, it no longer puts a bit.ly URL (it used to work) — it puts http://mydomain.com/?p=1234

    Is there a way to fix this? Any idea of why the bit.ly url stopped working?

  10. Pingback: Must-Have Wordpress Plugins « LedgerMate

  11. Pingback: Más de 200 aplicaciones útiles para Twitter | Informe25.com – Noticias Diarias – Informe25

  12. Hi,
    I used your plug-in Tweet this for a while now, and it is really the best I found but I think a little think is missing that I found on other plug-in : open a “pop-up” on javascript to update status without going on the twitter.com website I really think that can be an interesting possibility.

    Thanks again for your job !

  13. Pingback: | El ABC de un Networker

  14. I don’t know if this is a bug, but Tweet This is reposting on Twitter every time I edit an entry. Is there a way to stop this?

    • Yes, it’s Twitter’s fault because they changed their behavior. Previously, they would not accept double-posts so I did not have to worry about Tweet This 1.8.1 double-sending to Twitter, but now Twitter accepts double posts so I will have to correct that in the next version.

      • Hello Richard,
        First of all a great hourra & thanks for your plugin… Works perfect for me !
        I just wanted to know if the tweet again behavior each time you edit a post is still to be corrected, and hopefully when :smile2:

        Thank you again for your work

        Nic

  15. Pingback: Твитер: инструменты-сервисы-плагины. (часть 1) | Черная Свинья

  16. Pingback: Twitter Related Plugins | wp-Artists.com | wordpress blog configuration, Wordpress theme customization, blog installation

  17. Scheduled tweets don’t seem to be working… waited longer than 10mins. Also tweets with scheduled posts don’t send whent the post publishes. Could this be a problem with my wordpress installation or my server?

  18. :help: Tweet This appears in original posts just fine, but doesn’t appear in comments to the posts. :help:

  19. For me it always seems to tweet the post previous to the latest one… Is that a known issue?

    • Well, it never does that for me, but it is a known issue and some setups depending on if you use the [EXCERPT] tag or not (the [EXCERPT] tag does not work properly in 1.8.1).

  20. I use wordpress to run my school’s student programing website, and I use your plugin for people to follow events. The schools PHP server is SSL encrypted, so every page that has the tweet this button gives a warning pop-up in IE about unsecure content. Is there any way around this?

      • Thats what I ended up doing, I added a notice that only displays in IE that asks the user to use another browser like Firefox or Chrome :)

  21. Hi Richard, thanks for your great plugin. I’ve uploaded it (WordPress 3) for TwentyTen 1.1 theme.

    The tweet button seems to be working at the end of posts, but I am now getting the following error message over the header (I’ve removed my name and replaced it with stars):

    Warning: Header may not contain more than a single header, new line detected. in /homez.379/********/www/wp-includes/link-template.php on line 2239

    Any ideas whats wrong? I’ve deactivated and the error message disappears.

    Thank you

      • Hello Richard,

        Your WordPress plug-in looks great.
        I Tried it on a new (clean install) instance of WordPress and it works perfect.

        Now I tried to install it on an existing site and also got the header error on link-template.php (although it was line 2437).

        The troubled site runs WordPress 3.1.1 and beside Tweet This (1.8.2) these plug-ins:
        – Contact Form 7 (2.4.4)
        – Enhanced Meta Widget (3.0.0)
        – Image Widget (3.2.5)
        – Simple Tags (2.0-beta9)
        – TinyMCE Advanced (3.3.9.2)
        – WordPress Video Plugin (0.754)
        – WPML Multilingual CMS (2.0.4.1)
        – WP Native Dashboard (1.3.2)

        I hope there’s some kind of solution or work-around for this.
        Hope to hear from you!

  22. Advanced Options:
    “Use full permalinks unless Tweet/Plurk Text exceeds 140 characters.
    (Full permalinks will not be used on automatic tweets.)”

    I am trying to understand what an “automatic tweet” would be. I thought it was, obviously, a tweet automatically sent when I add a new post or page. I added a post, made sure the post was not going to send to twitter, published the post, went back to edit the post, used shortcodes of “[TITLE] [URL]” for tweet this, and updated the post.

    Tweet this properly tweeted the story but it did not use my permalink but rather the shortlink.

    I’m trying to figure out how to use the permalink instead of the shortlink. I must be misunderstanding something here since the feature seems to be built into the tweetthis but I am not understanding how to use it.

    • No, you’ve got it reversed, this feature is NOT built into Tweet This. I’ve just had too much trouble with it tweeting no URL at all, so I gave up on it… full permalinks cannot be used on tweets made by publishing a post OR by updating a previous post, they can only be used in the “Tweet This” links that appear on your public-facing blog, inserted by my plugin.

  23. Hi Richard,

    I recently migrated from a Bitnami WordPress Virtual Appliance to a TurnKey one, and it seems at that point Tweet This automatic tweeting stopped working for me. Like Simon Lewis above, when I click the Test Twitter OAuth button, it just says “Testing…” indefinitely. When I attempt to publish a post set for automatic tweeting I get the following error message:

    Fatal error: Call to undefined function curl_init() in /var/www/wordpress/wp-content/plugins/tweet-this/lib/twitteroauth.php on line 201

    The TurnKey Appliance is running WordPress 3.0.3 on PHP 5.2.4-2ubuntu5.14. I’m no Linux or PHP guru so I’m not sure what to do now. Please help!

    Many thanks.

    Nigel Boulton

    • You need to enable the Curl module which is required by Tweet This to access external web servers. allow_url_fopen must also be enabled in the PHP configuration. This is probably an issue with your Linux distro or PHP config.

      • Thank you Richard – you are a star!

        In case anybody has the same problem, I needed to do:
        apt-get install curl libcurl3 libcurl4-openssl-dev php5-curl
        /etc/init.d/apache2 restart

        allow_url_fopen was already enabled.

        Works fine now – a donation is on its way. Keep up the good work, and thanks again!

        • Thanks Nigel! I’m going to work on a new version of Tweet This soon (v1.8.2) and will add a note about all those services, modules, PHP extensions, or whatever you call them.

          I got the donation, thanks so much!

          • Hi Richard, this is a great idea!!!! Alway nice to have a good wiki at hand when using plugins. “TweetThis for dummies” :big-grin: Hope to see the update soon! Good luck with the codex! Cheers!, Berend

  24. Pingback: >> Why I love wordpress | Liz Oke

  25. Hi Richard,

    Do you have plans to implement an option that will auto submit/post a new post also to other social networks?

    If I understand it correctly the plugin does have an option to auto submit a new post to Twitter. It would be great if it could submit also to Facebook and other social networks automatically.

  26. I agree that this site is better than other, especially when it comes to quality. The plugin is cool! I just wish I could add the bar before my posts

  27. Pingback: 205 aplicaciones útiles para Twitter | Community Managers

  28. What do we put under “Twitter Access Token Secret:” no such info is provided by Twitter. Suggest you check with Twitter to see what info they supply for API.

  29. First off, I would like to say that this is a very great plugin you made here.

    I got a question. If I want to place tweet this (and other service) somewhere else, how do I do it?

  30. Pingback: WordPress Twitter plugins and widgets | free2tryme

  31. Hi

    Your plugin is ace although I can’t seem to get [EXCERPT] to work from the post menu in wordpress. It works fine from the tweet this menu.

    any ideas much appreciated

    Ess

  32. Pingback: 205 aplicaciones útiles para Twitter « I-Techies World News

  33. Hey Richard, this is Rich here, wanted to let you know your plugin is awesome!

    One question I have for using Su.pr API, the links are being created perfectly, but the links aren’t saved on my su.pr account so I can keep track of them. Would you happen to know if there is anyway to fix this? Is there some other API information missing?

    Anyways man, thanks so much for being such a smart guy, it’s clear you really thought this out very well. Kudos to you!

    Rich

    • It could be that the Su.pr API has changed, but it was working and putting the links in my account when I tested it in Nov. 2010. Check and make sure you entered both your Su.pr username and API key into the correct fields — NOT the Bit.ly fields as they will both be displayed on the same screen with the Bit.ly section on top if “URL Service to use on posts and auto-tweets” is set to Su.pr and “URL service to use on the Write Tweet page” is set to Bit.ly, which it is by default.

      It’s good to see that the name Richard is proliferating. :cool:

      • Hey Richard, thanks for replying so fast! Happy New Year by the way! So I double checked and it all checks out. “URL Service to use on posts and auto-tweets: Su.pr”..and the “URL service to use on the Write Tweet page” is set to same as above.

        It posts fine on my twitter @SpanishSongs but on my su.pr account it doesn’t show. :(

        • Okay, I’ll put it on my list. I haven’t worked on Tweet This much in the past two months but will again soon. In the mean time, you could try to figure it out yourself if you’re good with PHP, or just use a different shortener. Su.pr isn’t too popular compared to Bit.ly, though it does offer some unique features.

          • Thanks Richard! Su.pr isn’t as popular but like you said, the unique features are well worth it! (boost in traffic)

            If it could work it would be amazing. Thanks for checking up and putting it on your list. This is an AWESOME plugin. One of my favorites! Much success this year to you Richard.

            From Richard

          • BTW, if you need access to my admin panel for any reason (ie trouble shooting your plugin) let me know. I’m noooo good at PHP, but between both Richard’s our knowledge of PHP rocks. Good night and thank you.

  34. Pingback: 36 Great Wordpress Plugins Compatible With Wordpress 2.7.1 | SEO Perth

  35. Pingback: Add Twitter to your WordPress themes for more star power

  36. Hey Richard,

    Thanks for your solution :)

    I just moved my website to another server and I get some problems with Tweet this !

    I don’t know if the problem was there before .. but when I tweet a page using WEBLINKS configuration, the URL is bad and if I click on twitter link, I get a 404 error.

    If I use SHARE LINKS, the URL is OK. Other button (FaceBook and LINKEDIN) works perfectly.

    Any idea ?
    Thanks !

        • This has something to do with the unusual permalink structure you are using. If you select short URLs through a service such as Bit.ly or TinyURL, the links should work fine. I will look into this when developing the next version of Tweet This.

          I’ve never seen WordPress generate URLs with the question mark query string for post slugs. Is that a special plugin generating those pages?

          • Yes, it works using Bit.ly .. thank you ! :)

            I don’t think that I have a special pluging to generate pages.

            Thank you for quick reply :)

          • You’re welcome, glad that fixed it. Next version will use Bit.ly URLs by default since that’s what most people prefer. The local URLs are generated by adding /?p=### onto the end of your blog URL where ### is the post ID in the WordPress database, but it looks like this doesn’t work on all blogs so I will change this later.

          • Hi Richard,

            I just started trying out your very popular and recommended Tweet This plugin.

            I have had the same problem when I select “local” URL. I have permalinks set as: /%post_id%/%postname%/

            I think it is because in 1.81 you have dropped the “www” from the URL. When I manually add it back – the link works fine. However, does not work when someone else tries to use the link without “www”.

            Works in Bit.l. But I would prefer to use the blog URL including “www” if you can bring it back.

            Thanks

          • This was a compromise at another user’s suggestion, because I agreed there was no reason www should be included in a short URL. If your .htaccess file is set up properly and you are using the www subdomain, it will redirect non-www URLs to www URLs silently. I checked and this is not working on your blog. Are you using Microsoft IIS?

          • Hi Richard,

            Thanks for the quick response. I have had a bit of trouble (or my IT guy has) getting the .htaccess files right to use a different permalink. That is now all working.

            Not sure why that redirect is not working. I am running WordPress on a Mac server. No Microsoft systems.

            Thanks,

          • Yeah, could be something with Mac. I use CentOS Linux and most WordPress users use Linux web servers, either dedicated, VPS, or shared. Also, WordPress defaults to no www prefix.

  37. Pingback: The Ultimate Guide for Everything Twitter « killurtime.com

  38. Pingback: I 30 plugin principali per un blog professionale wordpress | drgeekyll.com geek blog web design programming wordpress joomla facebook twitter zend framework iphone windows phone 7 android

  39. Hi Richard,

    Apologies if this question has been answered already. I am trying to set up automatic tweeting on my website but when I press the Test Twitter OAuth button, it just says testing but then nothing. No success, but no apparent failure either. Then when I try to tweet i get the message:

    Fatal error: Class ‘OAuthSignatureMethod_HMAC_SHA1’ not found in /home/……./plugins/tweet-this/lib/twitteroauth.php on line 62

    Any suggestions, I’m running on hostgator with php ver 5.2.14. Not that that should be an issue as I have it working on another blog hosted on same…

    Simon Lewis

  40. Pingback: 8 Powerful Tools To Put Twitter On Your Website | Twitter Powerful

  41. i installed the plugin in several sites and im having a problem with one of them. the pronblem is that the icons (twitter, fb, etc) that appears after the posts creates a white box around it. but on other sites its ok. i think its the theme that is being used in that site. but im new to this and i cant find the source of the white border/margin (looked at the stylesheet, main index page, plugin files, etc). honestly, i cant find it because i dont know what im looking for. lol. if you have an email add i can send you the printscreen i took so you can see for yourself. hope you can help. thanks

    • The Tweet This icons and links are included in a paragraph tag within a custom div so if your theme puts a white box around paragraphs or divisions, that is the source of the problem. Please send the following information to richardxthripp@thripp.com:

      1. Screenshot
      2. Blog URL
      3. WordPress version
      4. PHP version
      5. Tweet This version (1.8.1 right?)

  42. Hi,

    quick question, how do I setup Tweet This to post automatically from custom post types?

  43. Hi Richard

    Excellent plug in. One minor issue, when installed, I get the following error appearing on my webpage:

    Notice: Undefined variable: style in /home/a9996371/public_html/wp-content/plugins/tweet-this/tweet-this.php on line 1055

    Any tips to fix?

    • Thanks for the report, that’s a leftover variable that is now undefined. For now, you can make it disappear by disabling PHP error reporting. It won’t hurt anything.

  44. I have tweet this set to Automatic tweet using the following format

    New blog post: [TITLE] [EXCERPT] [URL] #BrainSparks

    However it doesn’t seem to use the text in the excerpt box instead it is using large portion of the post sometimes to the point that it will cut off the hashtag or anything else I may choose to add the that post’s Tweet.

    Is there a different shortcode I should use to make sure it uses my handcrafted excerpt?

    • It’s supposed to use the first 70 characters of the excerpt if it exists or the first 70 characters of the post content if the excerpt does not exist, but there are a lot of problems that I will have to fix next version. For now, you will have to edit the Twitter text manually before publishing each post.

      The problem is the auto tweet function fires before WordPress actually saves the excerpt, so there is no excerpt there to reference. I’m not sure why this is happening… tt_auto_tweet is set to the lowest priority, 99.

  45. Pingback: Twitter Plugins, Widgets und Tools für den WordPress Blog! | Weblog-ABC

  46. When I’m trying to enter the details in my twitter api so that I can autopost, I get an ‘invalid url format’ error for the aaplication website and the callbakc url. I’ve emailed twitter developers to see what the problem is, but no response yet.

    Has anyone else had this issue and if so, how did you resolve?

    Thanks,

    Peter

      • Thanks Richard, Twitter have now got back to me and are investigating. I’ll post an update once it is resolved so that other people might be suffer the same issue.

        Peter

  47. Pingback: 10 Useful Twitter Plugins

Comments are closed.