I am having a problem getting authenticate to work correctly. When I use Jaisen’s example start.php script on his server I am asked to authorize the app the first time. When I run it again, after the app is authorized, I am returned logged in immediately without having to approve the app. This is the correct behavior.
When I run the same script on my server against my app, I am asked to authorize the app every time. This is incorrect. I should be able to just sign in directly after the first run.
The code for Jaisen’s script is:
include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';
include 'secret.php';
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
echo '<a href="' . $twitterObj->getAuthenticateUrl() . '">Authorize
with Twitter</a>';
Jaisen says there used to be an app setting that told Twitter to allow user login. This setting no longer seems to be available.
Is there some way of enabling sign in with Twitter for an app now?