Automate Facebook posts from a Google Sheet


How to automate Facebook posts from a Google Sheet: install the Chrome extension, click Build with Browser agent, tell the agent what you want, and follow its prompts. A working bot is built and tested in minutes.

Here is how the automation works. To automate Facebook posts from a Google Sheet, read the rows with Read data from a Google Sheet, loop through them, and for each row open Facebook, click What's on your mind?, type the post with Enter text, attach the image with Upload a file, and click Post. It uses Facebook in your own logged-in browser, so no API is needed. Each row is deleted once posted.

Author
Alex Barlow
Published

Build the Facebook posts from a description


Describe it and click the button: the agent builds and tests the poster in your Chrome extension. Runs happen on your own machine with the desktop app, since the images are on it and Facebook is logged in there.

  1. Read the posts from my Facebook posts sheet
  2. Open Facebook and start a new post
  3. Type the text and attach the image from the row
  4. Click Post and delete the row
Click to launch the Chrome extension. Not installed? You can create an account and try it free.Opens the Chrome extension. Free account to try.

You need a Google Sheet with one row per post, the text in column A and the image's full file path on this computer in column B, with no header row. Leave the sheet alone while the run deletes each row it has posted.

The video shows the agent building the Facebook posting automation from the lines above, in a few minutes.

Build the Facebook posts step by step


The steps the agent builds, as the Builder shows them: each step by its name, with the fields to set under it. Add them yourself in this order in the step-by-step builder, or open the agent's result there to adjust it.

  • 1.0 Read data from a Google Sheet
    • Spreadsheet: your sheet
    • Sheet name: the tab with the posts
  • 2.0 Loop through data
    • repeats for every row in [google-sheet-data]
    • 2.1 Go to page
      • URL: https://www.facebook.com
    • 2.2 Click element
      • Select: the What's on your mind? box
    • 2.3 Enter text
      • Select text field: the post composer
      • Text: column A of [google-sheet-data]
    • 2.4 Click element
      • Select: the photo icon
    • 2.5 Upload a file
      • File Input Field: the Add photos/videos area
      • File Path: column B of [google-sheet-data]
    • 2.6 Wait
      • Wait time: 5000
    • 2.7 Click element
      • Select: the Post button
    • 2.8 Delete rows from a Google Sheet
      • Spreadsheet: your sheet
      • Sheet name: the tab with the posts
      • First row: 1
      • Last row: 1

Common questions about automating Facebook posts


Why is the Facebook composer or Post button not found?

Facebook changes its layout often, so reselect the element in its Click element step, or use a custom selector with Use element text. When a run fails, hand it to the agent and it repairs the step.

Why does the image not upload to the Facebook post?

Usually the file path is wrong or the upload has not finished. Check the path in column B is the full path on this computer, and raise Wait time on the Wait step after the upload.

Can I automate Facebook posts in the cloud?

Yes, if the images are in Google Drive: swap Upload a file for Upload a file from Google Drive, save your Facebook login, and add a Log in with credentials step before the loop. See logins.

Can I post to a Facebook page or group instead of my profile?

Yes. Change the Go to page URL to the page or group, and reselect the composer there.

Can I automate Facebook posts without an API or code?

Yes. The automation types into Facebook's own composer in your logged-in browser, so it needs no Facebook developer app, and the agent builds the steps from the lines above.

Can I schedule Facebook posts from a Google Sheet?

Yes, on the desktop app with Facebook logged in on that machine, since the images are on it. For a cloud schedule, keep the images in Google Drive and add the saved login, as for a cloud run.

Where do I get help?

Get in touch with support, or ask in the axiom.ai community. For more on the approach, read how to automate Facebook posts.

Related guides