WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Cliff Seal
    Member
    Posted 1 year 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?

    Thanks!

    http://wordpress.org/extend/plugins/twitconnect/

  2. dowster
    Member
    Posted 1 year ago #

    Hi Cliff,

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

    Update:

    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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.