Twitter Connect Update – Post Comments to Twitter

October 27, 200929 Comments

People have often asked for a way to allow visitors to tweet their comments using the Twit Connect WordPress Plugin.  The next release includes that feature.  It comes with one issue: Read/Write access is required on the Twitter application (so the plugin can create the tweet).  Unfortunately, we created our applications at http://twitter.com/oauth with Read-only Access.  We need to change that now, but the Read/Write Access will only work for new visitors.  Anyone who has logged into a site before the change, has Read-only Access.  The plugin cannot change the Read-only Access to Read/Write Access.  If a visitor has Read-only Access, they must Revoke Access to your app.  The next time they login after revoking access, Read/Write access will be granted.

access

 

This is for those brave souls who want to give it a try before the general release.  Please replace your existing plugin and let me know if you find any bugs.

 

Update: I’ve uploaded 2.01 to WordPress.org.

 

Changes in Version 2.00 Beta

- Significant code restructuring and cleanup.
- New Feature – Post comments to Twitter.
- Changed tab-index of the button on the login page.
- oAuth Lib Change.

Share

23 Responses to “Twitter Connect Update – Post Comments to Twitter”

  1. Twitter Comment


    @vrtsflipflop Thanks. [link to post]

    Posted using Chat Catcher

  2. Twitter Comment


    Twitter Connect Version 2.0 Beta (WordPress) – New “Tweet This Comment” option – [link to post]

    Posted using Chat Catcher

  3. Twitter Comment


    ♺ @swhitley: Twitter Connect Version 2.0 Beta (WordPress) – New “Tweet This Comment” option – [link to post]

    Posted using Chat Catcher

  4. This is a test. I just installed the new version on this blog. A link to this comment will be posted to Twitter.

  5. Twitter Comment


    RT @swhitley: I just left a comment on Twitter Connect Update & Post Comments to Twitter at Shannon Whitley – [link to post]

    Posted using Chat Catcher

  6. Matt says:

    Shannon,

    I’m using this in conjunction with FB connect and I didn’t wish to add the “Tweet This” check box when you’re not logged in via Twiter. So i wrote this function to detect if user is from twc.

    function twc_is_twc_user($wpid) {
    global $wpdb;
    $sql = “SELECT meta_key FROM wp_usermeta WHERE user_id = %s AND meta_key = ‘twcid’”;
    return $wpdb->get_var($wpdb->prepare($sql, $wpid));
    }

    Then amended line 194 of twitterconnect.php to be this:

    if(is_user_logged_in() && twc_is_twc_user($user_ID))

    Quick fix, but works fine.

    Great plugin though thanks!

  7. Bruno Amaral says:

    Version 2 works like a charm. I would however like an option to disable the css script.

    I am trying to position the twitter sign-in button just below the “leave a comment” text. But so far the wordpress hooks and filters position it inside the form. Any idea on how I can achieve this?

  8. @Matt – Good catch. I’ll be sure to make that change following the beta.

    @Bruno – You should be able to place the function (see the plugin header) in that area of your template. If you place the function call just below the “leave a comment” heading, the button should appear in that locatin.

  9. Bruno Amaral says:

    I didn’t want to mess too much with the code of my theme, so instead I used the following code: add_action(‘thesis_hook_comment_field’, ‘twit_connect’);

    (the thesis theme contains several extra hooks for wordpress, this one includes the button right after the ID Fields.)

    It worked like a charm, but once logged in the “update your email address” message fired twice.(http://screencast.com/t/X7ZPQQ6goRj)

    Nothing to worry about, I can live with that :)

    thanks for the plugin!

  10. @Bruno – Based on your issue I implemented a new feature that allows you to position the button by supplying a DOM sibling id. The new version (2.01) has been loaded to WordPress.org and should be available shortly.

    @Matt – Got your fix in there too. Thanks!

  11. KURENG says:

    Great updates on the Twit Connect plugin! Because of this, it’s easier to integrate twitter login on my Twitter Gallery… have a look at http://twitoauth.com featured lots more of twitter oauth implementers

  12. Bruno Amaral says:

    Shannon, thank you very much for that :)

    I had been looking at several plugins for twitter oAuth, and Twitter Connect is indeed the most straight-forward to implement and use.

    As soon as wordpress 2.9 comes out, I will see how well it works with Simple Facebook Connect.

  13. kakaroto developer says:

    very good job

  14. Dawid Pacha says:

    This Twitt Auth plugin seems to be just what I was looking for. Thank you @swithley

  15. untell.com says:

    Shannon Whitley :: Technology, Software Development, Human Resources, PR, Marketing, and Life…

    Shannon Whitley is a computer programmer with experience in Human Resources Management Systems and Public Relations (PR) / Marketing Technology. Whitley Media developed PRX Builder, the World’s first social media press release creation tool….

  16. henr1 says:

    I like this plugin. One slight issue is the logout link that doesn’t seem to allow a user to logout. I’m trying to use this along with the fbconnect plugin. It seems to work ok except I don’t get the twitter avatar. Thanks!

  17. how do I get redirect back to original blog post after signing in from login page?

  18. to clarify – after sign in @ login page, user gets re-directed back to homepage, instead of back to blog post they wish to comment on – is this something I configure in the twitter app, or in the plug-in?

    thanks.

  19. The plugin works except the avatars from the twitter users do not show up on my site

  20. Shannon says:

    @henr1 – I think the logout may have been a glitch with WP. It seems to be working better with 2.9.

    @Connecticut Websites – If the user signs in on the login page, it will work just as if they logged into WP normally. There should be a login in your comments section that the user can click on. That will take them back to the post after they login.

    @Gossip Firstlady – I imagine it’s an issue with your theme. Do you have “Gravatars” enabled? If not, that could be part of the problem.

  21. Great plugin. I have multi author blog and would like authors posts to be automatically cross posted to twitter. Any pointers how to hack this plugin to do that?
    Big thanks
    Tim

  22. Twitter Comment


    I just left a comment on Twitter Connect Update – Post Comments to Twitter at Shannon Whitley – [link to post]

    Posted using Chat Catcher

  23. @PostToGop.Com – Hi Tim, I think there’s another plugin that would do that for you. You should be able to find it searching for Twitter on WordPress.org.

  24. thanks but I could not find anything that allowed multiple author authors to cross post to twitter without them having to enter their twitter account in a form. Just thought it was more seamless if it worked like the comment section of the plugin.

    On another note. the new update just broke my site :( .
    session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /wp-content/plugins/spiurl/spiurl.php:1) in /wp-content/plugins/twitconnect/twitconnect.php on line 75

    That is the error it outputs. And I am running 2.9
    Thanks for your help

  25. Shannon says:

    @PostToGop.Com – Ah, I think I know what you mean. I’ll give it some more thought.

    Sorry, but I can’t reproduce the error. Can I work with you on your blog to troubleshoot?

  26. Please please by all means. I am now following you on twitter and will send a mail to you shortly :)

  27. Vailancio says:

    Your plugin is great.

    But I can`t get spiurl to work. It can`t retrieve the image. :(

  28. Shannon says:

    Thank you @Vailancio — It could be a problem with your theme. If you want to contact me via the Contact link on this site, I’ll take a look at your site.

  29. omg_lol says:

    Hi.
    I love your blogpost. It is very nice to read.
    I am curious how I didn’t find this blog before.
    Sharing is said to be a virtue, and more readers should see this blog.
    I will go and share. Some of my friends will love it.

    Thanks and keep it up!
    :)

Leave a Reply

Twitter Tweet This

6 Trackbacks

  1. swhitley (Shannon Whitley)

    Twitter Comment


    @vrtsflipflop Thanks. [link to post]

    Posted using Chat Catcher

  2. swhitley (Shannon Whitley)

    Twitter Comment


    Twitter Connect Version 2.0 Beta (WordPress) – New “Tweet This Comment” option – [link to post]

    Posted using Chat Catcher

  3. kr8tr (Rob La Gesse)

    Twitter Comment


    ♺ @swhitley: Twitter Connect Version 2.0 Beta (WordPress) – New “Tweet This Comment” option – [link to post]

    Posted using Chat Catcher

  4. digitalsista (Shireen)

    Twitter Comment


    RT @swhitley: I just left a comment on Twitter Connect Update & Post Comments to Twitter at Shannon Whitley – [link to post]

    Posted using Chat Catcher

  5. untell.com

    Shannon Whitley :: Technology, Software Development, Human Resources, PR, Marketing, and Life…

    Shannon Whitley is a computer programmer with experience in Human Resources Management Systems and Public Relations (PR) / Marketing Technology. Whitley Media developed PRX Builder, the World’s first social media press release creation tool….

  6. gop_wins (PostToGop.Com)

    Twitter Comment


    I just left a comment on Twitter Connect Update – Post Comments to Twitter at Shannon Whitley – [link to post]

    Posted using Chat Catcher