'', // client key from your app 'client_secret' => '' // client secret from your app ) ); // uri TikTok will send the user to after they login that must match what you have in your app dashboard $redirectUri = 'https://path/to/tiktok/login/redirect.php'; $scopes = array( // a list of approved scopes by tiktok for your app 'user.info.basic', 'user.info.profile', 'user.info.stats', 'video.publish', 'video.upload', 'video.list' ); // get TikTok login url $authenticationUrl = $authentication->getAuthenticationUrl( $redirectUri, $scopes ); // display login dialog link echo '' . ' Continue With TikTok' . ''; ?>