Error while trying to access TikTok API OAuth2 credential

Hi — *Bypassed TikTok API entirely*

In case anyone gets away completely from traditional lines, OR from paying upload-post or Blotato, I’m using Playwright browser automation. No API approval, no OAuth dance, no sandbox mode, no third-party posting service.

Vibe-coded it, download Playright library; setup a couple scripts in a local folder ; have n8n node execute script.

The idea: Playwright launches a real Chrome instance with a saved logged-in TikTok profile, navigates online to my TikTok Studio, attaches the video file, types the caption, and clicks Post. TikTok sees a normal browser session — because it is one. It’s basically 4 buttons. The tiktok vid (genAI earlier in flow) and the description (has tags in it)

The n8n side is two nodes:

Code node (“TikTok Payload”) — pulls the caption from your content workflow and the video file path, writes them to a small tiktok-payload.json on local.

Execute Command node (“Playwright TikTok”) — runs node tiktok-post.js, which is a Playwright script that reads that payload, opens Chrome with your saved profile, and does the actual posting. Uses rebrowser-playwright instead of vanilla Playwright for better bot detection handling on TikTok.

One-time setup is just logging into TikTok manually in the Chrome profile once — after that it’s fully headless and automated.

Been running this reliably as part of a pipeline that auto-posts to 6 socials. Happy to share more detail if useful.