How to Extract all Image Links from Notion Database Items for Facebook Posting

Hello everyone,

I’m building a workflow to automatically pull images from a Notion database item and post them to Facebook. However, I’m hitting a key roadblock: I need a way to extract stable image URLs from Notion that can be reliably used in Facebook posts.

Here’s what I’ve managed so far:

  • I can connect to my Notion database and retrieve content from item properties without any issues.
  • The challenge is extracting all image URLs contained within the main content of each Notion item and ensuring they remain accessible for Facebook posts.

If anyone has experience with similar integrations, or if you’ve found a workaround to make this kind of workflow possible, I’d love to hear your approach!

Thank you very much for any help or insights you can share!

This is my workflow:

Notion to Facebook.json (79.7 KB)

Hi Khiem,
The URLs of images/files you get via the Notion API expire. So, you would need to: (1) get the URL, (2) download the file (depending on what file system you use), (3) upload the file to a file storage system that provides a permanent URL (e.g, Cloudinary, Google Drive, Dropbox)

1 Like