jmathai/twitter-async — Issue #135: Fatal error when changing callback url
Author: Djinner
Created: 2011-12-19 17:25:08+00:00
State: open

Hi,

This error appears when I want to specify my callback url during a twitter authentication process :

Fatal error: Uncaught exception 'EpiOAuthUnauthorizedException' in /home/bt/public_html/chatons/4dm1n/lib/twitter/EpiOAuth.php:432 Stack trace: #0 /home/bt/public_html/chatons/4dm1n/lib/twitter/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false) #1 /home/bt/public_html/chatons/4dm1n/lib/twitter/EpiOAuth.php(45): EpiOAuthResponse->__get('oauth_token') #2 /home/bt/public_html/chatons/signin.php(18): EpiOAuth->getAuthenticateUrl(NULL, Array) #3 /home/bt/public_html/chatons/index.php(24): require('/home/bt/public...') #4 {main} thrown in /home/bt/public_html/chatons/4dm1n/lib/twitter/EpiOAuth.php on line 432

I have followed your instructions at this url http://www.jaisenmathai.com/articles/twitter-async-documentation.html#oauthcallback, and I have commented the lines 171 & 172 from Epi0Auth.php file.

There is my code :

$Twitter = new EpiTwitter($consumerKey, $consumerSecret);
$customCallback = 'http://www.mydomain.com/index.php?myid'.$photoId;
echo '';

Do you have any idea to enlight me on this issue ?

By the way, thank's you very mutch for your API !