$clientId, 'redirect_uri' => $redirectUri, 'response_type' => 'code', 'scope' => 'identify' // Replace with the scopes your bot needs ]); // Redirect the user to the authorization page header('Location: ' . $authUrl); exit; ?>