PHP code example of yz / laravel-socialite-tiktok-ads-api
1. Go to this page and download the library: Download yz/laravel-socialite-tiktok-ads-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yz / laravel-socialite-tiktok-ads-api example snippets
'tiktok_ads_api' => [
'client_id' => env('TIKTOK_APP_ID'),
'client_secret' => env('TIKTOK_APP_SECRET'),
'redirect' => env('TIKTOK_REDIRECT_URI')
],
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
'SocialiteProviders\TikTokAdsApi\TikTokAdsApiExtendSocialite@handle'
],
];
return Socialite::driver('tiktok_ads_api')->redirect();