WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Tools
A Fix for login failed. (4 posts)

  1. energymover
    Member
    Posted 3 years ago #

    Here's the fix. A lot of people are unable to get Twitter Tool to login to twitter. The twitter server is denying access because the user-agent is set to Twitter Tools. I have no idea if twitter server is denying certain people based on their account & user-agent, or whatever. It is indeed a twitter issue because the twitter server is responding with a 401 Unauthorized error. As far as I know I'm in good standing with twitter. No problems with twitter at all.

    How to fix the "Twitter Tools" login failed issue:

    1. Go to admin "Plugins" and click on "Editor"
    2. Edit the file: twitter-tools/twitter-tools.php
    3. Search for: function aktt_login_test
    4. Change the variable, $snoop->agent, to this or whatever agent you want -->

    $snoop->agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6';

    There's no line break in the above code.

    I hope that helps.

    Regards,
    Paul

    http://wordpress.org/extend/plugins/twitter-tools/

  2. energymover
    Member
    Posted 3 years ago #

    BTW, the 401 unauthorized error is not the error what Twitter Tools displays. The 401 unauthorized is found by printing the $snoop->response_code. It's the actual error that the twitter server is giving. Twitter Tools only tells you that the login failed.

  3. hchoate
    Member
    Posted 3 years ago #

    Did not work for me.

    Tried

    return $results->error;

    and got blank still

  4. energymover
    Member
    Posted 3 years ago #

    You don't want to return $results->error

    If you want to see the error that twitter is sending back, then return $snoop->response_code

    You probably have another issue.

    I just did the fix on another website and it worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic