tuan-anh/laravel-tiktok

One package for TikTok using API version 2.0

v1 2024-10-22 03:59 UTC

This package is auto-updated.

Last update: 2024-10-22 04:06:01 UTC


README

TikTok Login Kit implementation in PHP based on the official documentation.

This is an unofficial SDK for the official Login Kit APIs.

Features

The library has been updated to include video/image publish via Direct Post

Current features include:

  • Log in with TikTok
  • Retrieve Basic User Information
  • Retrieve Advanced User Information
  • Retrieve Videos
  • Paginate Videos
  • Refresh Expired Token
  • NEW Publish a Video with "Direct Post" via URL
  • NEW Publish a Video with "Direct Post" via File
  • NEW Publish one or more Images with "Direct Post" via URLs

Installation

Install via Composer

composer require tuan-anh/laravel-tiktok

Requirements

You need to have your app set up and approved in the TikTok Developer Portal.

If you're upgrading to the v2 TikTok API version, make sure you've added your Redirect URLs and selected the proper scopes.

Requirements for Direct Posts

If you're planning to publish videos/photos via Direct Post, you need to undergo an audit. More info here

Until you're approved:

  • You can only publish private videos
  • The account that you use for testing must also be private