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

  1. energymover
    Posted 5 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: Gecko/20100625 Firefox/3.6.6';

    There's no line break in the above code.

    I hope that helps.



  2. energymover
    Posted 5 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
    Posted 5 years ago #

    Did not work for me.


    return $results->error;

    and got blank still

  4. energymover
    Posted 5 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

  • Twitter Tools
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic