Twit Connect
Error on Login; need to update for Twitter API 1.1? (4 posts)

  1. Cliff Seal
    Posted 3 years ago #

    Once Twitter authenticates and redirects back to the 'application', I get an empty array ($userinfo), which results in:

    An error occurred while trying to retrieve your Twitter username. Please try again.

    Is this a result of Twitter's API updates? If so, any plans to catch things up? If not, what's going awry?



  2. dowster
    Posted 3 years ago #

    Hi Cliff,

    I can't help but have noticed exactly the same issue myself.


    Found this: https://dev.twitter.com/discussions/976?page=1

    apparently xml is no longer supported - that's what it's trying to use.

  3. dowster
    Posted 3 years ago #

    Hey Cliff,

    The problem seems to be with xml support disapearing. I managed to fix the issue myself in the code:

    'commented out these lines and added a few to grab the twitter details without using xml

    // $to->format = 'xml';
    // $twitterInfo = new SimpleXMLElement($xml);

    $content = $to->get('account/verify_credentials');
    $id = $content->id;
    $screen_name = $content->screen_name;
    $name = $content->name;
    $url = $content->url;

  4. padreed123
    Posted 3 years ago #

    I'm trying to fix the same issue n the solution above didn't work for me.. I did a lil debugging and $user_login_n_suffix and $twc_user_login_suffix are both empty. I am self hosting the app vso should I update any of the other files?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Twit Connect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.