diff --git a/src/Instagram.php b/src/Instagram.php index 1fb70f2..7039beb 100644 --- a/src/Instagram.php +++ b/src/Instagram.php @@ -575,7 +575,7 @@ public function getOAuthToken($code, $token = false) */ protected function _makeCall($function, $auth = false, $params = null, $method = 'GET') { - if (!$auth) { + if (!$auth && !isset($this->_accesstoken)) { // if the call doesn't requires authentication $authMethod = '?client_id=' . $this->getApiKey(); } else {