Uploading video to tiktok/facebook/instagram

Could you please assist me in understanding what the actual boundaries are for us in these situations? I developed an automation, and according to the API, I can upload videos to all those social media platforms. However, in practice, it has driven me insane. Has anyone had success with this? Any input or tips would be appreciated.

1 Like

The main obstacle lies in finalizing video specifications, obtaining a public URL, and ensuring token refresh; failing to address any of these can lead to silent upload failures. In n8n, begin by processing with ffmpeg: MP4 H.264 + AAC, 1080x1920, 24–30 fps, ensuring a small file size and a consistent bitrate. Next, upload to a temporary CDN link (either S3 presigned or Cloudinary), and then proceed to call the APIs. For Instagram and Facebook: create a media container using video_url, monitor the processing status, and then publish; make sure to utilize long-lived tokens along with a one-click refresh mechanism. For TikTok: initiate the upload, transmit chunks, and then publish; keep polling until the upload is ready. Incorporate ffprobe checks, implement retries with backoff, and enforce strict aspect ratio and duration limits. I utilize Cloudinary and S3 for URLs, along with DreamFactory to provide a straightforward internal API for tokens and metadata that n8n accesses. Standardize the specifications, host them on a CDN, and manage OAuth and polling effectively, and it will function smoothly.

6 Likes

I just use Blotato

You can watch this tutorial to configure it: https://youtu.be/AejmiT7otgo?si=On3w3zrGC3UdYucS

1 Like

Thank you very much for your response! I just started this job, so I will focus on it tomorrow and will definitely read what you have written here repeatedly.

2 Likes

AH @Maneeshwar thanks for this, definitely checking it out asap

1 Like

Alright, let me know how this goes and if it actually help resolve the problems.

6 Likes

@stonewall yes i am beginning to see a work around about this. thanks man

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.