Support » Plugin: Twitter Tools » [Plugin: Twitter Tools] A Fix for login failed.

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Did not work for me.

    Tried

    return $results->error;

    and got blank still

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Twitter Tools] A Fix for login failed.’ is closed to new replies.