jmathai/twitter-async — Issue #134: Getting EpiOauthException on getAuthenticateUrl()
Author: littleibrat
Created: 2011-12-10 15:50:33+00:00
State: open

I get this error while asking for the authenticate URL:

exception 'EpiOAuthException' in /srv/www/htdocs/dev/main/twitter/lib/EpiOAuth.php:434 Stack trace: #0 /srv/www/htdocs/dev/main/twitter/lib/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false) #1 /srv/www/htdocs/dev/main/twitter/lib/EpiOAuth.php(45): EpiOAuthResponse->__get('oauth_token') #2 /srv/www/htdocs/dev/usersocialsettings.php(12): EpiOAuth->getAuthenticateUrl() #3 {main}

This is my code:

include 'main/twitter/lib/EpiCurl.php';
include 'main/twitter/lib/EpiOAuth.php';
include 'main/twitter/lib/EpiTwitter.php';
include 'main/twitter/lib/secret.php';

//twitter
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
try{
$url = $twitterObj->getAuthenticateUrl();
}
catch(Exception $ex){
echo $ex;
}

I should also mention that if I run the simpleTest.php included I get a blank page below the Generate Authorization Link. I have also commented lines 171 and 172 in EpiOAuth.php

Any ideas?

Thanks and keep up the good work!