Back to Integrations
integrationFacebook Graph API node
integrationGoogle Drive node

Facebook Graph API and Google Drive integration

Save yourself the work of writing custom integrations for Facebook Graph API and Google Drive and use n8n instead. Build adaptable and scalable Development, and Data & Storage workflows that work with your technology stack. All within a building experience you will love.

How to connect Facebook Graph API and Google Drive

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Facebook Graph API and Google Drive integration: Create a new workflow and add the first step

Step 2: Add and configure Facebook Graph API and Google Drive nodes

You can find Facebook Graph API and Google Drive in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Facebook Graph API and Google Drive nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Facebook Graph API and Google Drive integration: Add and configure Facebook Graph API and Google Drive nodes

Step 3: Connect Facebook Graph API and Google Drive

A connection establishes a link between Facebook Graph API and Google Drive (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Facebook Graph API and Google Drive integration: Connect Facebook Graph API and Google Drive

Step 4: Customize and extend your Facebook Graph API and Google Drive integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Facebook Graph API and Google Drive with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Facebook Graph API and Google Drive integration: Customize and extend your Facebook Graph API and Google Drive integration

Step 5: Test and activate your Facebook Graph API and Google Drive workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Facebook Graph API to Google Drive or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Facebook Graph API and Google Drive integration: Test and activate your Facebook Graph API and Google Drive workflow

✨🩷Automated social media content publishing factory + system prompt composition

Social Media Content Publishing Factory for Streamlined Content Creation Across Platforms

Who is this for?
This workflow is designed for content creators, social media managers, and marketing teams who need to efficiently create and publish content across multiple social media platforms. It's perfect for businesses looking to maintain a consistent presence across X (Twitter), Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts without spending hours crafting platform-specific content manually.

What problem is this workflow solving?
Creating tailored content for different social media platforms is time-consuming and requires understanding each platform's unique requirements and audience expectations. This workflow solves the challenge of:
Maintaining consistent messaging across platforms while respecting platform-specific formats
Generating optimized content that follows best practices for each platform
Creating accompanying visuals without graphic design skills
Streamlining the approval process before publishing
Reducing the time spent on repetitive content creation tasks

What this workflow does
This automated content factory takes your content idea and transforms it into platform-optimized posts for all major social media channels. The workflow:

Accepts your content idea or topic through a chat interface
Leverages AI to generate tailored content for each platform (X/Twitter, Instagram, Facebook, LinkedIn, Threads, YouTube Shorts)
Creates appropriate images using AI image generation
Sends content for approval via email before publishing
Publishes approved content to selected platforms
Maintains chat memory to improve future content generation

Setup
Connect your social media platform credentials (X/Twitter, Instagram, Facebook, LinkedIn)
Set up your email account for the approval process
Configure your OpenAI API key for AI content generation
Update the image generation service credentials (Pollinations.ai is used by default)
Customize the system prompts and schemas in the Google Docs nodes with your brand voice and content requirements

How to customize this workflow to your needs
Modify the system prompts in the Google Docs nodes to match your brand voice and content strategy
Adjust the social media schemas to include specific fields relevant to your content
Update the approval process to include additional stakeholders if needed
Add or remove social media platforms based on your marketing strategy
Customize the image generation prompts to better match your visual branding
Integrate with your existing content calendar or CRM systems

This workflow eliminates the need to manually craft different versions of the same content for each platform, saving hours of work while ensuring your social media presence remains consistent and optimized for maximum engagement.

Nodes used in this workflow

Popular Facebook Graph API and Google Drive workflows

+2

Automated Instagram Reels Workflow

This workflow automates the process of creating and posting Instagram Reels, combining Google Drive, AI, Airtable, and the Facebook Graph API. It supports two content creation paths: Scheduled Random Video Selection & Posting Selects a random video from a Google Drive folder named "Random video mover" based on a schedule. Moves the video to a processing folder for posting. Manual Upload Trigger & Posting Watches a specific Google Drive folder ("n8n reels automation on instagram"). Triggers the workflow when a new video is uploaded. Core Process (applies to both paths) Download Video from Google Drive. AI Caption Generation with Google Gemini, using the file name as context. The AI creates concise captions with hashtags and a call-to-action. Airtable Logging to store video name, caption, and URL. Instagram Reels Posting via the Facebook Graph API. Recent Change In early 2025, Meta tightened its requirements for video_url and image_url parameters. URLs must now be direct, public links to the raw media file with no redirects or authentication. Google Drive links no longer work. Our Fix Store the binary file locally on the n8n server at /tmp/video.mp4. Serve the file through a public n8n webhook with the correct Content-Type. Use the webhook URL in the Facebook Graph API request. Upload succeeds without the “Media download has failed” error. Cleanup Deletes the temporary file after posting. Benefits Saves time with full automation. Improves engagement through AI-generated captions. Keeps content organized in Airtable. Works with Meta’s updated API requirements by hosting files directly from the n8n server.
+9

✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition

Social Media Content Publishing Factory for Streamlined Content Creation Across Platforms Who is this for? This workflow is designed for content creators, social media managers, and marketing teams who need to efficiently create and publish content across multiple social media platforms. It's perfect for businesses looking to maintain a consistent presence across X (Twitter), Instagram, Facebook, LinkedIn, Threads, and YouTube Shorts without spending hours crafting platform-specific content manually. What problem is this workflow solving? Creating tailored content for different social media platforms is time-consuming and requires understanding each platform's unique requirements and audience expectations. This workflow solves the challenge of: Maintaining consistent messaging across platforms while respecting platform-specific formats Generating optimized content that follows best practices for each platform Creating accompanying visuals without graphic design skills Streamlining the approval process before publishing Reducing the time spent on repetitive content creation tasks What this workflow does This automated content factory takes your content idea and transforms it into platform-optimized posts for all major social media channels. The workflow: Accepts your content idea or topic through a chat interface Leverages AI to generate tailored content for each platform (X/Twitter, Instagram, Facebook, LinkedIn, Threads, YouTube Shorts) Creates appropriate images using AI image generation Sends content for approval via email before publishing Publishes approved content to selected platforms Maintains chat memory to improve future content generation Setup Connect your social media platform credentials (X/Twitter, Instagram, Facebook, LinkedIn) Set up your email account for the approval process Configure your OpenAI API key for AI content generation Update the image generation service credentials (Pollinations.ai is used by default) Customize the system prompts and schemas in the Google Docs nodes with your brand voice and content requirements How to customize this workflow to your needs Modify the system prompts in the Google Docs nodes to match your brand voice and content strategy Adjust the social media schemas to include specific fields relevant to your content Update the approval process to include additional stakeholders if needed Add or remove social media platforms based on your marketing strategy Customize the image generation prompts to better match your visual branding Integrate with your existing content calendar or CRM systems This workflow eliminates the need to manually craft different versions of the same content for each platform, saving hours of work while ensuring your social media presence remains consistent and optimized for maximum engagement.

Instagram Carousel Posts from Google Drive via Cloudinary with Telegram Alerts

Overview This n8n workflow automates the creation and publishing of Instagram carousel posts by downloading images from Google Drive, uploading them to Cloudinary for hosting, and publishing them as a coordinated carousel post via Facebook Graph API. This workflow is perfect for social media managers and content creators who need to publish coordinated multi-image posts from cloud-stored assets with minimal manual intervention. Key Features Multi-Image Processing: Handles multiple images for carousel posts automatically Cloud Image Hosting: Uses Cloudinary for reliable image hosting and delivery Instagram API Integration: Creates and publishes carousel posts via Facebook Graph API Google Drive Integration: Downloads images directly from Google Drive links Telegram Notifications: Sends success notifications after post publication Error Handling: Continues workflow execution even if individual images fail Technical Workflow Data Preparation: Structures input data with image links and post content Batch Processing: Loops through multiple image URLs from Google Drive Image Download: Downloads each image from Google Drive Cloud Upload: Uploads images to Cloudinary for public hosting Media Creation: Creates Instagram media objects for each image ID Collection: Collects all media IDs for carousel creation Carousel Assembly: Creates carousel post with all images and caption Publication: Publishes the complete carousel to Instagram Notification: Sends Telegram confirmation message Prerequisites Facebook Graph API credentials with Instagram Business permissions Google Drive API access for image downloads Cloudinary Account for image hosting Instagram Business Account connected to Facebook Telegram Bot for notifications Input Data Structure The workflow expects data with these fields: instagram_content: Caption text for the post Instagram Account ID: Target Instagram business account pose_X_drive_fotolink: Google Drive links for carousel images Image metadata for processing Configuration Options Wait Times: 20s between carousel creation and 15s before publishing for API rate limits Image Processing: Automatic upload to Cloudinary with preset configurations Error Handling: Individual image failures won't stop the entire carousel creation Batch Processing: Processes all images simultaneously for efficiency
+5

Automate LinkedIn Posts with Claude AI, DALL-E Images & Google Sheets Approval

How it works This workflow automates your entire LinkedIn content strategy, from ideation to publishing. Daily Idea Generation:** Every day, the workflow uses an advanced AI agent (Anthropic's Claude model) to generate a new, viral-optimized LinkedIn post idea, complete with a title, full text, and a detailed image description. It analyzes your past posts from a Google Sheet to ensure content is fresh and aligns with one of your four content pillars: timeless principles, case studies, growth hacks, or controversial ads. AI Image Creation:** It then uses OpenAI's DALL-E to create a custom, high-quality image based on the generated description and a style reference image you provide, ensuring brand consistency. Review & Approval Workflow:** The generated post and its accompanying image are automatically saved as a new row in a Google Sheet, marked with a "review" status. This gives you full editorial control. Automated Publishing:** Once you approve a post by changing its status to "ready" in the Google Sheet, a separate part of the workflow picks it up and automatically publishes it to your LinkedIn profile at a scheduled time. Status Tracking:** After publishing, the workflow updates the status in your Google Sheet to "posted," so you always have a clear overview of your content pipeline. Set up steps This workflow integrates several services. Follow these steps to get it running: Copy the Google Sheet: Make a copy of the AI Posts Content Machine Google Sheet template and select your copy in the Get Past Ideas, Save Post, Get Ready Posts, and Update Status nodes. Set Up Credentials: You will need to create and add API credentials for the following services within the corresponding n8n nodes: Google Sheets & Google Drive: Create a Google credential. Anthropic: Add your API key in the Anthropic Chat Model node. OpenAI: Add your API key as a Header Auth credential in the OpenAI Image node. Perplexity AI: Add your API key as a Header Auth credential inside the Perplexity Research sub-workflow. LinkedIn: Create a LinkedIn credential. Customize Your Content: In the Idea Generator node, adjust the system prompt to reflect your specific audience, topics, and content style. Create a folder in Google Drive for your post images. Add a reference image to this folder that defines your desired visual style. Paste the shareable link to your style reference image into the Image Style node. Activate the Workflow: Enable the workflow to start the automated content creation and publishing process.

Upload Video & Image Ads to Meta Ads Manager from Google Sheets & Google Drive

Upload Video & Image Ads to Meta Ads Manager from Google Sheets using Google Drive & Meta Graph API Product Description This n8n workflow automates the process of uploading video and image advertisements to Meta Ads Manager via the Meta Graph API (Facebook Ads) directly from Google Sheets and Google Drive. The workflow monitors a specified Google Drive folder for new assets, extracts file metadata, and creates Facebook ad campaigns with customizable creative elements including multiple text variations, headlines, and descriptions. The automation supports both video and image assets, with intelligent handling of single or multiple image creatives. For video assets, it manages the upload process, monitors processing status, and automatically generates preview thumbnails. Image assets can be configured with multiple variations and custom placement targeting across Facebook, Instagram, Messenger, and Audience Network. Key Features Automated Asset Monitoring**: Watches Google Drive folder for new uploads and file updates Multi-Format Support**: Handles both video and image advertisements Flexible Creative Options**: Supports multiple text variations, headlines, and descriptions Smart Image Handling**: Creates single or multi-image creatives based on available assets Cross-Platform Targeting**: Configures ads for Facebook, Instagram, Messenger, and Audience Network Status Tracking**: Updates Google Sheets with upload progress and ad IDs Batch Processing**: Processes multiple ads efficiently with built-in rate limiting Direct Sheet Integration**: Upload ads directly from Google Sheets using custom menu Prerequisites Required Accounts & Access Meta Developer Account**: Required for Facebook Graph API access Meta Business Manager**: Active ad account with appropriate permissions Google Account**: With access to Google Drive and Google Sheets APIs n8n Instance**: Self-hosted or cloud instance with appropriate node packages Technical Requirements Meta App must be set to "Live" status (not Development mode) Facebook Graph API v22.0 access Google Drive API credentials with folder access permissions Google Sheets API credentials with read/write permissions Setup Instructions Meta Developer Setup Create a Meta Developer account and register a new app Generate a long-lived access token with the following permissions: ads_management business_management pages_read_engagement Ensure your app status is set to "Live" Note your Ad Account ID, Page ID, and Instagram User ID Google Services Configuration Create a Google Cloud project and enable: Google Drive API Google Sheets API Generate OAuth2 credentials for both services Create a dedicated Google Drive folder for asset uploads Make a copy of the Google Sheets template Workflow Configuration Import the workflow JSON into your n8n instance Configure the following credentials: Facebook Graph API (using your access token) Google Drive OAuth2 API Google Sheets OAuth2 API Settings Configuration Update the settings and settings_1 nodes with: Your Google Sheets URL Your Google Drive folder URL Execute and pin these settings nodes to preserve configurations Google Sheets Setup Fill in the "Settings" tab of your copied template with: Ad Account IDs Page IDs Instagram User IDs Webhook URL: Copy the webhook URL from your n8n workflow and paste it in the settings tab Configure your ad campaigns in the "Ready to Upload" sheet Asset Management Upload your video/image assets to the designated Google Drive folder Ensure file naming follows your tracking conventions Update the Google Sheets with corresponding asset information Workflow Triggers The workflow can be activated through: Manual Trigger**: For testing and one-time executions Google Drive Trigger**: Automatic execution when files are added/updated Webhook Trigger**: Integration with Google Apps Script for direct sheet control Custom Menu Integration**: Upload ads directly from Google Sheets via "Meta → Upload Ads" menu option Using the Custom Menu The Google Sheets template includes a custom Google Apps Script that adds a "Meta" menu to your spreadsheet. To upload ads: Ensure the webhook URL is correctly configured in the Settings tab Navigate to the "Meta" menu in your Google Sheet Click "Upload Ads" to trigger the workflow The workflow will process all ads marked for upload in the "Ready to Upload" sheet File Support Video Assets**: MP4, MOV, AVI formats (uploaded via Meta's video API) Image Assets**: JPG, PNG formats with support for multiple creative variations Large File Handling**: Includes workaround for Google Drive virus scanning on large files Important Notes All ads are created in "PAUSED" status for review before activation The workflow includes built-in delays to respect API rate limits Asset processing status is monitored and updated in real-time Multiple text variations enable A/B testing capabilities Custom placement rules optimize ad delivery across different platforms Webhook Configuration**: Ensure the webhook URL in your Google Sheets settings matches your n8n workflow webhook endpoint This automation significantly reduces manual work in Meta Ads Manager while maintaining full control over creative elements and targeting parameters.
+2

Upload Instagram Reels from Google Sheets with DeepSeek AI captions

Overview This n8n workflow template automates the entire process of publishing Instagram Reels from content stored in Google Sheets and Google Drive. It's designed for content creators, social media managers, and businesses who maintain a content calendar in spreadsheets and need automated publishing with AI-generated captions. Workflow Steps Trigger Phase Schedule Trigger**: Runs every 12 hours (configurable) Google Sheets Trigger**: Alternatively triggers when new rows are added Retrieves the next unposted video from the spreadsheet (where POSTED = FALSE) Content Preparation Downloads video from Google Drive using file ID from spreadsheet Processes video with FFmpeg to add custom text overlays: Title text overlay Numbering overlay Sales hook text Sends processed video using SSH Caption & Metadata Generation Extracts video filename and metadata Uses AI Agent (DeepSeek) to generate engaging Instagram captions: 2-4 engaging sentences 3-5 relevant hashtags Clear call-to-action Under 150 characters total Stores caption and metadata in Airtable for record-keeping Instagram Publishing Creates Facebook/Instagram media container with video URL and caption Waits and polls for video processing completion Publishes the Reel when ready Updates Google Sheet to mark content as posted (POSTED = TRUE) Cleanup Removes temporary video files from disk

Build your own Facebook Graph API and Google Drive integration

Create custom Facebook Graph API and Google Drive workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Google Drive supported actions

Copy
Create a copy of an existing file
Create From Text
Create a file from a provided text
Delete
Permanently delete a file
Download
Download a file
Move
Move a file to another folder
Share
Add sharing permissions to a file
Update
Update a file
Upload
Upload an existing file to Google Drive
Search
Search or list files and folders
Create
Create a folder
Delete
Permanently delete a folder
Share
Add sharing permissions to a folder
Create
Create a shared drive
Delete
Permanently delete a shared drive
Get
Get a shared drive
Get Many
Get the list of shared drives
Update
Update a shared drive

Facebook Graph API and Google Drive integration details

integrationFacebook Graph API node
Facebook Graph API

Facebook needs no introduction. It is an online social networking and media service that gathers people from all parts of the world, from different backgrounds, and allows them to promote their businesses and services, share, react to and comment on all types of content, and communicate and message their friends.

Use case

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more

FAQs

  • Can Facebook Graph API connect with Google Drive?

  • Can I use Facebook Graph API’s API with n8n?

  • Can I use Google Drive’s API with n8n?

  • Is n8n secure for integrating Facebook Graph API and Google Drive?

  • How to get started with Facebook Graph API and Google Drive integration in n8n.io?

Need help setting up your Facebook Graph API and Google Drive integration?

Discover our latest community's recommendations and join the discussions about Facebook Graph API and Google Drive integration.
hubschrauber
Jon
David O'Neil

Looking to integrate Facebook Graph API and Google Drive in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Facebook Graph API with Google Drive

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon