Posts

Showing posts with the label twitter

Twitter api redirect to empty page

Twitter api redirect to empty page In this page: http://branding.cumedia.tv/login.php There are four logging options. All works fine except twitter. They redirects to the profile page, but redirects to an empty page. Why is that? Here is the code for the login page: else if (isset($_GET['method']) && $_GET['method']=='twitter_brand'){ //Successful response returns oauth_token, oauth_token_secret, user_id, and screen_name $connection = new TwitterOAuth($config_twitter_id, $config_twitter_secret, $_SESSION['token'] , $_SESSION['token_secret']); $access_token = $connection->getAccessToken($_REQUEST['oauth_verifier']); if($connection->http_code == '200') { //Redirect user to twitter $_SESSION['status'] = 'verified'; $_SESSION['request_vars'] = $access_token; //Insert user into the database $user_info = $connection->get('account/verify_credentials'); $name = explo...