{"issue":{"title":"EpiOAuthUnauthorizedException error not in local but in subdomains..","user":{"login":"archer247","id":984484,"url":"https://api.github.com/users/archer247","avatar_url":"https://secure.gravatar.com/avatar/79bef280793ccb7a00fedacd7a89e898?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"79bef280793ccb7a00fedacd7a89e898"},"created_at":"2011-12-28T16:27:36Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-28T18:58:56Z","id":2672553,"closed_at":null,"html_url":"https://github.com/jmathai/twitter-async/issues/136","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"EpiOAuthUnauthorizedException: <em class=\"placeholder\"></em>. <pre>#0 /home/comiingl/.repo/htdocs/sites/default/modules/custom/comiingle_twitter/lib/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false)\r\n#1 /home/comiingl/.repo/htdocs/sites/default/modules/custom/comiingle_twitter/lib/EpiOAuth.php(53): EpiOAuthResponse->__get('oauth_token')\r\n#2 /home/comiingl/.repo/htdocs/sites/default/modules/custom/comiingle_twitter/lib/EpiOAuth.php(60): EpiOAuth->getAuthorizeUrl(NULL)\r\n#3 /home/comiingl/.repo/htdocs/sites/default/modules/custom/comiingle_twitter/comiingle_twitter.module(61): EpiOAuth->getAuthorizationUrl()\r\n#4 /home/comiingl/.repo/htdocs/sites/default/modules/custom/comiingle_pages/includes/comiingle_pages.blocks.inc(245): _comiingle_twitter_wallpost()\r\n#5 [internal function]: _comiingle_pages_twitter_ajax_login()\r\n#6 /home/comiingl/.repo/htdocs/includes/menu.inc(503): call_user_func_array('_comiingle_page...', Array)\r\n#7 /home/comiingl/.repo/htdocs/index.php(21): menu_execute_active_handler()\r\n#8 {main}</pre><pre>$_REQUEST:\r\nArray\r\n(\r\n    [Drupal_tableDrag_showWeight] => 0\r\n    [__utma] => 144383541.886879457.1323126003.1323275309.1323282960.3\r\n    [__utmz] => 144383541.1323126003.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)\r\n    [__qca] => P0-1275361382-1323789814597\r\n    [Drupal_visitor_admin_compact_mode] => 1\r\n    [DrupalAdminToolbar] => expanded=0&activeTab=admin-menu\r\n    [has_js] => 1\r\n    [SESSc8219160ad9691d18afe162140797d7b] => kC5K63vo67fNGG5ZWngSM3iphDLbG5USWAUEyvMUCA8\r\n)\r\n\r\n\r\nREQUEST_URI:\r\n/ajax/login-twitter</pre>\r\n\r\nits the error my application has the read,write and direct messages permission, im sure that the keys are been sent to the twitter server...\r\n\r\nthis is my function for obtaining the url of twitter...\r\n\r\ndefine('TWITTER_CONSUMER_KEY', '******');\r\n  define('TWITTER_CONSUMER_SECRET', '*******');\r\n\r\n\r\nfunction _comiingle_twitter_wallpost() {\r\n\r\n\r\n  $twitterObj = new EpiTwitter(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);\r\n\r\n  $validation = (object) null;\r\n  //$login = l('Tweet', $twitterObj->getAuthorizationUrl());\r\n\r\n  /*\r\n   * THIS VALIDATION IS KIND OF WRONG, I DON'T UNDERSTAND\r\n   * WHY IS CHECKING THE SAME VARIABLES TWICE???\r\n   */\r\n  if (isset($_GET['oauth_token']) || (isset($_SESSION['oauth_token']) && (isset($_SESSION['oauth_token_secret'])))) {\r\n\r\n    if (isset($_SESSION['oauth_token']) || (isset($_SESSION['oauth_token_secret']))) {\r\n      $twitterObj->setToken($GET['oauth_token']);\r\n      $token = $twitterObj->getAccessToken();\r\n      $_SESSION['oauth_token'] = $token->oauth_token;\r\n      $_SESSION['oauth_token_secret'] = $token->oauth_token_secret;\r\n    } else {\r\n      $twitterObj->setToken($_SESSION['oauth_token'], $_SESSION['oauth_token_secret']);\r\n    }\r\n    $user = $twitterObj->get_accountVerify_credentials();\r\n  } elseif (isset($_GET['denied'])) {\r\n    $validation->status = 1;\r\n    $validation->value = $twitterObj->getAuthorizationUrl();\r\n  }\r\n\r\n  if (!empty($validation->status)) {\r\n    return $validation;\r\n  }\r\n  $validation->status = 0;\r\n  $validation->value = $twitterObj->getAuthorizationUrl();\r\n\r\n  return $validation;\r\n}\r\n\r\nplease would you help me?, as i said before, it works on my locals, but in the real server doesnt work :@ ","number":136,"url":"https://api.github.com/repos/jmathai/twitter-async/issues/136","comments":2,"assignee":null},"comment":{"user":{"login":"jmathai","id":6384,"url":"https://api.github.com/users/jmathai","avatar_url":"https://secure.gravatar.com/avatar/e4d1f099d40e3b453be3355349b90457?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e4d1f099d40e3b453be3355349b90457"},"created_at":"2011-12-28T18:58:56Z","updated_at":"2011-12-28T18:58:56Z","id":3293906,"body":"@archer247 can you try the proposed solution here: https://github.com/jmathai/twitter-async/issues/134#issuecomment-3198311","url":"https://api.github.com/repos/jmathai/twitter-async/issues/comments/3293906"},"action":"created"}