๐ฑ Schedule social media posts from Google Sheets to Twitter & Instagram
โก 1,483 views ยท ๐ฑ Social Media & Email Marketing
๐ก Pro Tip โ If youโve run into Facebookโs Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly โ no app review needed.
Description
Social Media Auto-Poster (Google Sheets โ Twitter & Instagram)
This workflow automatically:
- Pulls rows marked as
Pendingfrom a Google Sheet. - Generates a formatted Instagram caption and HTML preview.
- Converts the HTML into an image via HCTI.io.
- Posts the content:
- As a tweet (text only) to Twitter (X).
- As a post (image + caption) to Instagram via the Facebook Graph API.
- Marks the row in Google Sheets as
Postedwith a timestamp.
It runs every 5 hours (configurable via the Schedule Trigger).
Requirements
- Google Sheets API Credentials connected in n8n.
- HCTI.io account (HTML โ Image API).
- Twitter (X) OAuth1 credentials.
- Facebook/Instagram Graph API access token (for the business account/page).
- A Google Sheet with at least these columns:
RowIDCaptionDescHashtagsStatus
Set Status to Pending for any row you want posted.
Setup
- Import the JSON workflow (
My_workflow.json) into your n8n instance. - Link all credentials (replace placeholders with your own API keys and tokens).
- Update the Google Sheet ID and Sheet Name inside the
Get row(s) in sheetandUpdate Status Postednodes. - (Optional) Adjust the posting interval in the
Schedule Triggernode.
How It Works
- Trigger: Runs every 5 hours.
- Fetch Rows: Reads Google Sheets for rows with
Status = Pending. - Caption Generation: Combines
Desc+Hashtagsintofinal_caption. - HTML โ Image: Converts caption to a styled 1080x1080 post.
- Social Posting:
- Posts the caption to Twitter (text only).
- Uploads the image + caption to Instagram.
- Update Status: Marks the row as
Posted on [timestamp].
Notes
- Facebook/Instagram tokens expire; refresh or use long-lived tokens.
- HCTI.io may require a paid plan for high volumes.
- Works best with a business Instagram account linked to a Facebook Page.
License
This workflow can be reused and adapted freely under the MIT license.
๐ Nodes Used
Google Sheets, HTTP Request, Facebook Graph API, Schedule Trigger
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File