PHPackages                             socialiteproviders/tiktok - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. socialiteproviders/tiktok

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

socialiteproviders/tiktok
=========================

TikTok (tiktok.com) OAuth2 Provider for Laravel Socialite

5.2.0(2y ago)17442.5k—0%131MITPHPPHP ^8.0

Since Jul 10Pushed 1y ago2 watchersCompare

[ Source](https://github.com/SocialiteProviders/TikTok)[ Packagist](https://packagist.org/packages/socialiteproviders/tiktok)[ RSS](/packages/socialiteproviders-tiktok/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (1)

TikTok
======

[](#tiktok)

```
composer require socialiteproviders/tiktok
```

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

### Add configuration to `config/services.php`

[](#add-configuration-to-configservicesphp)

```
'tiktok' => [
  'client_id' => env('TIKTOK_CLIENT_ID'),
  'client_secret' => env('TIKTOK_CLIENT_SECRET'),
  'redirect' => env('TIKTOK_REDIRECT_URI')
],
```

### Add provider event listener

[](#add-provider-event-listener)

#### Laravel 11+

[](#laravel-11)

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('tiktok', \SocialiteProviders\TikTok\Provider::class);
});
```

Laravel 10 or below Configure the package's listener to listen for `SocialiteWasCalled` events. Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\TikTok\TikTokExtendSocialite::class.'@handle',
    ],
];
```

### Usage

[](#usage)

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('tiktok')->redirect();
```

### Important information

[](#important-information)

For proper operation make sure you have the following permissions/scopes approved:

- `user.basic.info`\*
- `user.info.profile` (optional and recommended, required for `username`)
- `user.info.stats`(optional and recommended)

Returned User Fields
====================

[](#returned-user-fields)

- id
- username (requires the permission/scope `user.info.profile`)
- union\_id
- name
- avatar

Reference
=========

[](#reference)

- [TikTok Login Kit](https://developers.tiktok.com/doc/login-kit-web)

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~128 days

Recently: every ~99 days

Total

9

Last Release

796d ago

Major Versions

4.1.2 → 5.0.02023-05-25

PHP version history (3 changes)4.0.0PHP ^7.2 || ^8.0

4.1.0PHP ^7.4 || ^8.0

5.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/65eb3a7ba2a2c13b3a9de48b836caf759ad4052f9a839e30464c80d177d5b3d2?d=identicon)[atymic](/maintainers/atymic)

---

Top Contributors

[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (16 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (6 commits)")[![IsraelOrtuno](https://avatars.githubusercontent.com/u/1769417?v=4)](https://github.com/IsraelOrtuno "IsraelOrtuno (3 commits)")[![moha-ep](https://avatars.githubusercontent.com/u/106144010?v=4)](https://github.com/moha-ep "moha-ep (2 commits)")[![lebedevsergey](https://avatars.githubusercontent.com/u/7325764?v=4)](https://github.com/lebedevsergey "lebedevsergey (1 commits)")[![Skullbock](https://avatars.githubusercontent.com/u/1104083?v=4)](https://github.com/Skullbock "Skullbock (1 commits)")[![tombanksme](https://avatars.githubusercontent.com/u/22574643?v=4)](https://github.com/tombanksme "tombanksme (1 commits)")[![Diegslapasteque](https://avatars.githubusercontent.com/u/47917342?v=4)](https://github.com/Diegslapasteque "Diegslapasteque (1 commits)")[![dwightwatson](https://avatars.githubusercontent.com/u/1100408?v=4)](https://github.com/dwightwatson "dwightwatson (1 commits)")[![jesse-davis](https://avatars.githubusercontent.com/u/1972627?v=4)](https://github.com/jesse-davis "jesse-davis (1 commits)")

---

Tags

laraveloauthoauth1oauth2social-mediasocialitesocialite-providerslaravelprovideroauthsocialiteTikTok

### Embed Badge

![Health badge](/badges/socialiteproviders-tiktok/health.svg)

```
[![Health](https://phpackages.com/badges/socialiteproviders-tiktok/health.svg)](https://phpackages.com/packages/socialiteproviders-tiktok)
```

###  Alternatives

[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

629.5M15](/packages/socialiteproviders-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

347.3M25](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

402.0M5](/packages/socialiteproviders-instagram)[socialiteproviders/saml2

SAML2 Service Provider for Laravel Socialite

172.6M5](/packages/socialiteproviders-saml2)[kovah/laravel-socialite-oidc

OpenID Connect OAuth2 Provider for Laravel Socialite

24133.8k](/packages/kovah-laravel-socialite-oidc)[socialiteproviders/kakao

Kakao OAuth2 Provider for Laravel Socialite

10510.1k6](/packages/socialiteproviders-kakao)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
