Is it possible to check to see if a user is logged in to Twitter and
has authorized the application without having any redirects?
For first time login, I have this basic code:
?
require(twitter/twitteroauth.php);
session_start();
// The TwitterOAuth instance
$twitteroauth = new
With TwitterOAuth you have to maintain your own sessions. When you get a
users access token save that into $_SESSION or save something like
$_SESSION['twitter_users_auth']
= TRUE. Check if that is set and if it is not you know the user is not
currently logged into your site with Twitter.
Abraham