Cliff Seal
Member
Posted 5 months 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/
dowster
Member
Posted 1 month 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.
dowster
Member
Posted 1 month 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;