Skip to Content
StarsellDocs
Apps

TikTok

Connect a TikTok account, show your latest videos as a row of covers that play on the page, and feature videos on the products they show.

The TikTok app brings your TikTok videos to your store. It reads your latest public videos, keeps their covers in Files, and gives the theme a TikTok videos section: a row of covers that plays the video over the page. On the product template, the same section shows each product's own videos.

Starsell signs in with TikTok's Login Kit and reads with the Display API. It asks for user.info.basic and user.info.profile (your name, picture and @handle) and video.list (your public videos). It never posts or reads anything else.

Set it up

Install

In the store: Apps, TikTok, Install.

Connect your account

Under Account, click Connect TikTok. TikTok opens, you sign in and allow Starsell, and you land back on the app's page with "TikTok connected. Reading your posts." Your videos appear a few seconds later.

If the card says TikTok isn't set up on this server yet, the server is missing Starsell's TikTok app keys. See For the platform team.

Add TikTok videos to the home page

Under On your store, TikTok videos on the home page, click Add to the home page. The section goes into your draft theme just above the footer, showing your latest videos. Open it in the studio to change it, then publish.

Feature a video on a product page

Under Videos, click a video, search for the products it shows under Show it on these products, and Save. Then Videos on product pages, Add to product pages: the section goes into your product template, under the product's details, set to the product's own videos. A product page without linked videos shows nothing there.

The checklist ticks Connect when the sign-in works, the home page step when your theme has the section, and the product step once the product template has it and at least one video is linked. Mark done ticks a step by hand.

The section

SettingWhat it does
Heading"On TikTok" by default, per language.
VideosLatest; The product's own (on a product page: the videos linked to that product, elsewhere the latest); or One video.
VideoThe video One video shows. Automatic is the newest.
How many videos1 to 12.
LayoutOne row (up to 6 a row, 2 on phones) or Slider that visitors swipe.
Video titlesThe video's title or description under its cover, two lines at most.
Button to the profile"Follow @yourshop", opening your TikTok profile.

A click on a cover opens TikTok's own player over the page, with sound and controls; Close or Escape goes back. The player only loads when a visitor asks for it, so the page stays fast. In the studio and previews a cover links to the video on TikTok instead.

What syncs

  • Videos: your latest 20 public videos, read when you connect, every hour after that, and right away with Read again. Older videos linked to a product stay too.
  • Covers: copied into Files, in the TikTok folder, marked From TikTok. TikTok's cover links expire after 6 hours, so the store always shows Starsell's copy. Files lists them as used by the TikTok app.
  • The sign-in: TikTok's access token lasts 2 hours and is renewed by itself before each read; the renewal token lasts 180 days and is replaced on every renewal, so an active store never has to sign in again.

Limits

  • Only public videos: private and friends-only videos aren't listed by TikTok.
  • A product page shows up to 6 videos; a video can show on up to 20 products.
  • Visitors don't see the section until the app is installed and connected. In the studio it says how to connect instead.
  • If TikTok stops accepting the sign-in (access removed in TikTok, or no read for 180 days), the page shows Connect again. The videos already kept stay on the store until then.

Disconnect and uninstall

Disconnect revokes Starsell's access at TikTok, forgets the kept videos and their product links, and deletes their covers unless something else uses them. Uninstall does the same and removes the app.

For the platform team

The app needs Starsell's app on TikTok for Developers with Login Kit (Web) and the Display API, and the scopes user.info.basic, user.info.profile and video.list:

  1. Copy the app's Client key and Client secret into TIKTOK_CLIENT_KEY and TIKTOK_CLIENT_SECRET.
  2. Under Login Kit, add the redirect URI https://<your WEB_URL>/api/apps/tiktok/callback. TikTok only accepts https and the exact address, without query parameters.
  3. Until TikTok approves the app, only accounts added as its target users can connect.

On this page