I wonder what I get wrong here but this piece of code fails to catch exceptions:
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
header("location:".$twitterObj->getAuthorizeUrl(null,array('oauth_callback' => 'http://domainname.com/tweet/')) ."");
echo"Error connecting to Twitter. We cannot connect you this time. Please try later";
Fatal error: Uncaught exception ‘EpiOAuthException’ with message ‘An exception occurred in EpiTwitter The response is Twitter / Error in /home/unitefor/public_html/domain.com/epiTwitter/EpiOAuth.php on line 358
Please help on this
Yes. Both are correct. This error is triggered from time to time. Maybe 1 out of every 20 attempts.
Hello, any suggestion to resolve this issue?
simpleTest.php randomly doesn't work? If that's the case then I'm not sure what the problem could be. The code does the same thing every time so I would think it has something to do with the host itself.
Unfortunately, I don't have time to do too much troubleshooting. If you continue to have problems you can always try https://github.com/abraham/twitteroauth
Hey, thanks. sounds good to try https://github.com/abraham/twitteroauth
I'll let you know if there is any issue too with this