Every 15 minutes
Publish a content plan to Facebook and LinkedIn on schedule
Posts in your content plan go out on your Facebook Page and LinkedIn at their scheduled times, and each one is marked as done.
- Runs
- Every 15 minutes
- Apps
- Facebook Pages, LinkedIn
- AI
- Not needed
- Access
- pages_manage_posts; LinkedIn w_member_social
Send this to your assistant
Create a ClickRuntime automation: every 15 minutes, check my content plan sheet for posts that are due, publish each to my Facebook Page and LinkedIn, and record the post ids in the row.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A recruitment agency plans a month of posts every few weeks: job highlights, candidate tips, team news. Someone then has to log in to both networks at the right time each day, and posts are often late or forgotten.
The plan now publishes itself. Each item goes out on Facebook and LinkedIn at its scheduled time, and the post ids are written back so the team can see what's live.
What you get out of it
Planned posts go out on time
No one needs to be online at 9am to press publish.
Both networks from one plan
One row covers Facebook and LinkedIn.
Progress you can see
Post ids in the plan show what's been published and what's still to come.
Plan in bulk
Spend one afternoon planning a month, then let it run.
How it works
What happens, step by step
Every 15 minutes, ClickRuntime reads your content plan.
It picks items whose time has come and that haven't been published.
Each one is posted to your Facebook Page and LinkedIn.
The post ids are written into the plan, so nothing is posted twice.
Before it runs live
- Connect Facebook Pages
- Connect LinkedIn
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Facebook Pages and LinkedIn steps into one automation
Under the hood
The code that runs this automation
from datetime import datetime
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http
PAGE_ID, AUTHOR, SHEET_ID = "1234567890", "urn:li:organization:12345", "your-spreadsheet-id"
@on_trigger
def run(event):
values = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).spreadsheets().values()
rows = values.get(spreadsheetId=SHEET_ID, range="Plan!A2:D").execute().get("values", [])
li_headers = {"Authorization": f"Bearer {credentials.connection('linkedin', 'work')}", "LinkedIn-Version": "202409"}
posted = 0
for i, r in enumerate(rows):
when, text, fb_id, li_id = (r + [""] * 4)[:4]
if fb_id or not when or datetime.fromisoformat(when) > datetime.now():
continue
fb = http.post(f"https://graph.facebook.com/v21.0/{PAGE_ID}/feed",
data={"message": text, "access_token": credentials.connection("facebook", "work")}).json()
li = http.post("https://api.linkedin.com/rest/posts", headers=li_headers,
json={"author": AUTHOR, "commentary": text, "visibility": "PUBLIC", "lifecycleState": "PUBLISHED",
"distribution": {"feedDistribution": "MAIN_FEED"}})
values.update(spreadsheetId=SHEET_ID, range=f"Plan!C{i + 2}:D{i + 2}", valueInputOption="RAW",
body={"values": [[fb["id"], li.headers.get("x-restli-id", "")]]}).execute()
posted += 1
return {"posted": posted}FAQ
Common questions
Where does the plan live?
Can a row go to only one network?
What time zone are times in?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Approve submitted posts before they go to Facebook and LinkedIn
Content your team sends in is held for your approval, and only what you approve is posted to Facebook and LinkedIn.
See how it worksTurn one topic into posts for Facebook and LinkedIn
Send a topic and get two posts written for each audience, published on your Facebook Page and LinkedIn, with the links emailed to you.
See how it worksShare each new article on Facebook and LinkedIn
Every new article on your site is announced on your Facebook Page and LinkedIn with a short introduction.
See how it worksKeep exploring
Set up “Publish a content plan to Facebook and LinkedIn on schedule” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.