π± Automate video story publishing to Facebook Page using Google Drive and Sheets
β‘ 670 views Β· π± Social Media & Email Marketing
Description
Automated Facebook Page Story Video Publisher (Google Drive β Facebook β Google Sheet)
> Recommended: Self-hosted via tino.vn/vps-n8n?affid=388 β use code VPSN8N for up to 39% off.
This workflow is an automated solution for publishing video content from Google Drive to your Facebook Page Stories, while using Google Sheets as a posting queue manager.
What This Workflow Does (Workflow Function)
This automation orchestrates a complete multi-step process for uploading and publishing videos to Facebook Stories:
-
Queue Management: Every 2 hours and 30 minutes, the workflow checks a Google Sheet (
Get Row Sheetnode) to find the first video whoseStoriescolumn is empty β meaning it hasnβt been posted yet. -
Conditional Execution: An If node confirms that the videoβs
File IDexists before proceeding. -
Video Retrieval: Using the
File ID, the workflow downloads the video from Google Drive (Google Drivenode) and calculates its binary size (Set to the total size in bytesnode). -
Facebook 3-Step Upload: It performs the Facebook Graph APIβs three-step upload process through HTTP Request nodes:
- Step 1 β Initialize Session: Starts an upload session and retrieves the
upload_urlandvideo_id. - Step 2 β Upload File: Uploads the binary video data to the provided
upload_url. - Step 3 β Publish Video: Finalizes and publishes the uploaded video as a Facebook Story.
- Step 1 β Initialize Session: Starts an upload session and retrieves the
-
Status Update: Once completed, the workflow updates the same row in Google Sheets (
Update upload status in sheetnode) using therow_numberto mark the video as processed.
Prerequisites (What You Need Before Running)
1. n8n Instance
> Recommended: Self-hosted via tino.vn/vps-n8n?affid=388 β use code VPSN8N for up to 39% off.
2. Google Services
-
Google Drive Credentials: OAuth2 credentials for Google Drive to let n8n download video files.
-
Google Sheets Credentials: OAuth2 credentials for Google Sheets to read the posting queue and update statuses.
-
Google Sheet: A spreadsheet (ID:
1RnE5O06l7W6TLCLKkwEH5Oyl-EZ3OE-Uc3OWFbDohYI) containing:File IDβ the videoβs unique ID in Google Drive.Storiesβ posting status column (leave empty for pending videos).row_numberβ used for updating the correct row after posting.
3. Facebook Setup
- Page ID: Your Facebook Page ID (currently hardcoded as
115432036514099in theinfonode). - Access Token: A Page Access Token with permissions such as
pages_manage_postsandpages_read_engagement. This token is hardcoded in theinfonode and again inStep 3. Post video.
Usage Guide and Implementation Notes
How to Use
- Queue Videos: Add video entries to your Google Sheet. Each entry must include a valid Google Drive File ID. Leave the Stories column empty for videos that havenβt been posted.
- Activate: Save and activate the workflow. The
Schedule Triggerwill automatically handle new uploads every 2 hours and 30 minutes.
Implementation Notes
-
β οΈ Token Security: Hardcoding your Access Token inside the
infonode is not recommended. Tokens expire and expose your Page to risk if leaked. π Action: Replace the static token with a secure Credential setup that supports token rotation. -
Loop Efficiency: The βfalseβ output of the
Ifnode currently loops back to theGet Row Sheetnode. This creates unnecessary cycles if no videos are found. π Action: Disconnect that branch so the workflow stops gracefully when no unposted videos remain. -
Status Updates: To prevent re-posting the same video, the final
Update upload status in sheetnode must update the Stories column (e.g., write"POSTED"). π Action: Add this mapping explicitly to your Google Sheets node. -
Automated File ID Sync: This workflow assumes that the Google Sheet already contains valid File IDs. π You can build a secondary workflow (using
Schedule Trigger1 β Search files and folders β Append or update row in sheet) to automatically populate new video File IDs from your Google Drive.
β Result
Once active, this workflow automatically:
- pulls pending videos from your Google Sheet,
- uploads them to Facebook Stories,
- and marks them as posted β all without manual intervention.
π Nodes Used
Google Sheets, HTTP Request, Google Drive, Schedule Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File