Skip to content

feat(tiktok): opt-in comments-only connection for EEA accounts - #1564

Closed
rancaHoratiu wants to merge 1 commit into
ChatbotXIO:mainfrom
rancaHoratiu:feat/tiktok-comments-only
Closed

rancaHoratiu wants to merge 1 commit into
ChatbotXIO:mainfrom
rancaHoratiu:feat/tiktok-comments-only

Conversation

@rancaHoratiu

Copy link
Copy Markdown

Closes #1563

Adds an opt-in TIKTOK_COMMENTS_ONLY=true env var for accounts that can't be granted the Business Messaging scopes (EEA, Switzerland, UK):

  • messaging scopes are not requested or required; comment.list and comment.list.manage are required instead
  • only the COMMENT webhook is subscribed, and its failure fails the save

Without the env var nothing changes. Tests added in scopes.test.ts and subscribe-webhooks.test.ts; vitest run (127 passed) and tsc --noEmit pass for integrations/tiktok.

Deployments need the env var on both builder and worker.

TIKTOK_COMMENTS_ONLY=true drops the Business Messaging scopes, which accounts registered in the EEA, Switzerland or the UK cannot be granted, requires comment.list and comment.list.manage instead, and subscribes only the COMMENT webhook. Default behaviour is unchanged.
@sung17

sung17 commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this! Closing in favour of a per-credential approach. The reasoning is in #1563 and the follow-up PR will be linked there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TikTok: allow a comments-only connection (EEA accounts can't get Business Messaging scopes)

2 participants