Skip to content

feat: Add TikTok Platform Integration #5

Description

@adi805

Summary

SocialCrabs currently supports Instagram, LinkedIn, and Twitter/X. This issue tracks the addition of TikTok platform integration to enable automated posting, engagement, and content management on TikTok.

Motivation

TikTok is one of the fastest-growing social media platforms with significant organic reach potential. Adding TikTok support would complete the multi-platform automation suite and provide users with:

  • Automated video/image carousel posting
  • Comment automation
  • Follow/unfollow automation
  • DM capabilities
  • Analytics and monitoring

Technical Approach

Based on the existing platform architecture (src/platforms/), the TikTok integration should follow the established patterns.

File Structure

  • src/platforms/tiktok.ts - Main TikTok platform handler
  • src/platforms/tiktok/login.ts - TikTok login with 2FA support
  • src/platforms/tiktok/post.ts - Video and carousel posting
  • src/platforms/tiktok/engagement.ts - Like, comment, follow
  • src/platforms/tiktok/scraper.ts - Profile and content scraping
  • src/platforms/__tests__/tiktok.test.ts - Unit tests

Core Capabilities

  • Login with credentials or QR code
  • Upload video posts (TikTok video API)
  • Upload image carousels (multi-image posts, up to 35 images)
  • Like, comment, and follow actions
  • Profile scraping (followers, following, posts)
  • Story posting
  • Analytics and metrics collection

TikTok API Considerations

Unlike Instagram and Twitter, TikTok has restricted API access. Recommended approach: Playwright-based browser automation (matching SocialCrabs simulative human-like behavior approach) for full feature parity.

Implementation Notes

  1. Login: TikTok uses email/phone + password or QR code. 2FA with authenticator apps should be supported.
  2. Video Posting: TikTok requires video format (.mp4, max 10 min, <2GB). FFmpeg preprocessing needed.
  3. Carousel Posts: TikTok supports image posts (up to 35 images) - can leverage this for carousel content.
  4. Rate Limiting: TikTok is aggressive with rate limits. Conservative delays needed (~30-60s between actions).
  5. Stealth Mode: TikTok has strong bot detection. Anti-detection measures critical.

Labels

enhancement, platform-tiktok, good-first-issue

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions