Back to Integrations
integrationLinkedIn node
integrationFacebook Graph API node

LinkedIn and Facebook Graph API integration

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

How to connect LinkedIn and Facebook Graph API

  • 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.

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

Step 2: Add and configure LinkedIn and Facebook Graph API nodes

You can find LinkedIn and Facebook Graph API 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 LinkedIn and Facebook Graph API nodes one by one: input data on the left, parameters in the middle, and output data on the right.

LinkedIn and Facebook Graph API integration: Add and configure LinkedIn and Facebook Graph API nodes

Step 3: Connect LinkedIn and Facebook Graph API

A connection establishes a link between LinkedIn and Facebook Graph API (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.

LinkedIn and Facebook Graph API integration: Connect LinkedIn and Facebook Graph API

Step 4: Customize and extend your LinkedIn and Facebook Graph API 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 LinkedIn and Facebook Graph API with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

LinkedIn and Facebook Graph API integration: Customize and extend your LinkedIn and Facebook Graph API integration

Step 5: Test and activate your LinkedIn and Facebook Graph API workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from LinkedIn to Facebook Graph API 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.

LinkedIn and Facebook Graph API integration: Test and activate your LinkedIn and Facebook Graph API workflow

AI-Powered Social Media Content Generator & Publisher

AI-Powered Social Media Content Generator & Publisher 🚀

This AI-driven n8n workflow automates social media content creation and publishing across LinkedIn, Instagram, Facebook, and Twitter (X). It generates engaging, platform-optimized posts using Google Gemini AI, based on user inputs such as a post title, keywords, and an uploaded image. The workflow ensures seamless content generation and publishing, making it a perfect tool for marketers, business owners, influencers, and content creators.

🌟 Features & Benefits

✅ AI-Generated Social Media Posts – Uses Google Gemini AI to create high-quality, optimized content.
✅ Multi-Platform Support – Automatically generates posts for LinkedIn, Instagram, Facebook, and Twitter (X).
✅ Hashtag & SEO Optimization – Includes trending hashtags to enhance visibility and engagement.
✅ Image Upload & Processing – Allows image uploads for Instagram and Facebook using imgbb and Facebook Graph API.
✅ Automated Publishing – Posts are automatically published on all selected platforms.
✅ Custom Call-to-Action – Each platform's post is optimized with CTAs for better engagement.
✅ User-Friendly Form Submission – Easy-to-use form where users can enter post titles, keywords, links, and images.
✅ Performance Tracking – Provides confirmation and tracking links for published posts.

📌 How It Works

1️⃣ User Submission Form
Fill out the form with Post Title, Keywords, and an Optional Link.
Upload an image for Instagram & Facebook posts.

2️⃣ AI Content Generation
Google Gemini AI generates optimized content for each platform.
The AI ensures professional, engaging, and audience-specific content.

3️⃣ Content Review
Users review and approve the AI-generated content before publishing.

4️⃣ Automated Publishing
Posts are automatically published on LinkedIn, Facebook, Instagram, and Twitter (X).
Uses Facebook Graph API, LinkedIn API, Twitter API, and Instagram API.

5️⃣ Post Confirmation & Tracking
Get links to track published posts on each platform.

🛠️ Prerequisites

Before using this workflow, ensure you have:

✅ n8n Instance (Cloud or Self-Hosted)
✅ Social Media API Credentials (Facebook, Instagram, LinkedIn, Twitter API)
✅ Google Gemini AI API Key
✅ imgbb API Key (for image hosting)

Buy My Book:
Mastering n8n on Amazon

Full Courses & Tutorials:
http://lms.syncbricks.com

📺 YouTube Video Tutorial 🎥

Watch the step-by-step tutorial on how to set up and use this n8n workflow template:

🔗 YouTube Tutorial - AI-Powered Social Media Posting in n8n

🎯 Use Cases

📌 Marketing Agencies – Automate client content scheduling.
📌 Businesses & Brands – Maintain a consistent brand presence on social media.
📌 Content Creators & Influencers – Generate high-quality posts quickly.
📌 E-commerce & Startups – Promote products and services effortlessly.
📌 Corporate & Enterprise Teams – Streamline internal and external communications.

👨‍💻 Creator Information

👤 Developed by: Amjid Ali
🌐 Website: SyncBricks
📧 Email: [email protected]
💼 LinkedIn: Amjid Ali
📺 YouTube: SyncBricks

💡 Support & Contributions

If you find this workflow helpful, consider supporting my work:

👉 Donate via PayPal

For full courses on * AI Automation*, visit:

📚 SyncBricks LMS

📚 AI and Auotmation Course

👉 Get Started with N8N

Nodes used in this workflow

Popular LinkedIn and Facebook Graph API workflows

+8

✨🤖Automate Multi-Platform Social Media Content Creation with AI

Automate Multi-Platform Social Media Content Creation with AI Who is this for? Social Media Managers and Digital Marketers seeking to streamline content production across 7+ platforms (X/Twitter, Instagram, LinkedIn, Facebook, TikTok, Threads, YouTube Shorts) using AI-powered automation. What problem does this solve? Creating platform-optimized content at scale while maintaining brand consistency across multiple channels, reducing manual work by 80% through AI generation and automated publishing. What this workflow does AI Content Generation: Uses GPT-4/Gemini to create platform-specific posts Automatically generates hashtags, CTAs, and emoji placement Supports image/video suggestions and image creation using OpenAI or Pollinations.ai Uses SERP api to search for relavent content Approval Workflow: Sends formatted HTML emails for human review Implements double-approval system with Gmail integration Cross-Platform Publishing: One-click deployment to: Instagram/Facebook (via Graph API) X/Twitter (Official API) LinkedIn (Sales Navigator integration) Setup Credentials: OpenAI API key Google Gemini API Social media platform tokens (X, LinkedIn, Facebook) ImgBB for image hosting Gmail SERP API Telegram Configuration: Update all "your-unique-id" placeholders in API nodes Set email recipients in Gmail nodes Customize AI prompts Customization: Adjust character limits per platform Modify approval thresholds Add/remove social platforms as needed How to customize Content Style**: Edit prompt templates in the "Social Media Content Factory" agent node Approval Process**: Modify email templates Analytics**: Connect to Google Sheets for performance tracking Image Generation**: Switch between Pollinations.ai/DALL-E/Midjourney
+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.
+3

AI-Powered Social Media Content Generator & Publisher

AI-Powered Social Media Content Generator & Publisher 🚀 This AI-driven n8n workflow automates social media content creation and publishing across LinkedIn, Instagram, Facebook, and Twitter (X). It generates engaging, platform-optimized posts using Google Gemini AI, based on user inputs such as a post title, keywords, and an uploaded image. The workflow ensures seamless content generation and publishing, making it a perfect tool for marketers, business owners, influencers, and content creators. 🌟 Features & Benefits ✅ AI-Generated Social Media Posts – Uses Google Gemini AI to create high-quality, optimized content. ✅ Multi-Platform Support – Automatically generates posts for LinkedIn, Instagram, Facebook, and Twitter (X). ✅ Hashtag & SEO Optimization – Includes trending hashtags to enhance visibility and engagement. ✅ Image Upload & Processing – Allows image uploads for Instagram and Facebook using imgbb and Facebook Graph API. ✅ Automated Publishing – Posts are automatically published on all selected platforms. ✅ Custom Call-to-Action – Each platform's post is optimized with CTAs for better engagement. ✅ User-Friendly Form Submission – Easy-to-use form where users can enter post titles, keywords, links, and images. ✅ Performance Tracking – Provides confirmation and tracking links for published posts. 📌 How It Works 1️⃣ User Submission Form Fill out the form with Post Title, Keywords, and an Optional Link. Upload an image for Instagram & Facebook posts. 2️⃣ AI Content Generation Google Gemini AI generates optimized content for each platform. The AI ensures professional, engaging, and audience-specific content. 3️⃣ Content Review Users review and approve the AI-generated content before publishing. 4️⃣ Automated Publishing Posts are automatically published on LinkedIn, Facebook, Instagram, and Twitter (X). Uses Facebook Graph API, LinkedIn API, Twitter API, and Instagram API. 5️⃣ Post Confirmation & Tracking Get links to track published posts on each platform. 🛠️ Prerequisites Before using this workflow, ensure you have: ✅ n8n Instance (Cloud or Self-Hosted) ✅ Social Media API Credentials (Facebook, Instagram, LinkedIn, Twitter API) ✅ Google Gemini AI API Key ✅ imgbb API Key (for image hosting) Buy My Book: Mastering n8n on Amazon Full Courses & Tutorials: http://lms.syncbricks.com 📺 YouTube Video Tutorial 🎥 Watch the step-by-step tutorial on how to set up and use this n8n workflow template: 🔗 YouTube Tutorial - AI-Powered Social Media Posting in n8n 🎯 Use Cases 📌 Marketing Agencies – Automate client content scheduling. 📌 Businesses & Brands – Maintain a consistent brand presence on social media. 📌 Content Creators & Influencers – Generate high-quality posts quickly. 📌 E-commerce & Startups – Promote products and services effortlessly. 📌 Corporate & Enterprise Teams – Streamline internal and external communications. 👨‍💻 Creator Information 👤 Developed by: Amjid Ali 🌐 Website: SyncBricks 📧 Email: [email protected] 💼 LinkedIn: Amjid Ali 📺 YouTube: SyncBricks 💡 Support & Contributions If you find this workflow helpful, consider supporting my work: 👉 Donate via PayPal For full courses on * AI Automation*, visit: 📚 SyncBricks LMS 📚 AI and Auotmation Course 👉 Get Started with N8N
+5

Publish WordPress Posts to Social Media X, Facebook, LinkedIn, Instagram with AI

Workflow Description for n8n: Social Media Post from Ideas Copy This workflow automates the process of creating and publishing social media posts across multiple platforms (Twitter/X, Facebook, LinkedIn, and Instagram) based on content from a WordPress post. It uses AI models to generate platform-specific captions and images, and integrates with Google Sheets, WordPress, and various social media APIs. Is a powerful tool for automating social media post creation and publishing, saving time and ensuring consistent, platform-optimized content across multiple channels. Below is a breakdown of the workflow: How It Works The workflow is designed to streamline the creation and publishing of social media posts. Here's how it works: Trigger: The workflow starts with a Manual Trigger node, which initiates the process when the user clicks "Test workflow." Fetch Data: The Google Sheets node retrieves the WordPress Post ID from a predefined Google Sheet. The Get Post node fetches the corresponding WordPress post content using the retrieved Post ID. Generate Social Media Content: The Social Media Manager node uses an AI model (OpenRouter) to analyze the WordPress post and generate platform-specific captions for Twitter/X, Facebook, LinkedIn, and Instagram. The AI ensures that each caption is tailored to the platform's audience, tone, and style, including hashtags and calls to action. Generate Images: The Image Instagram and Image Facebook e Linkedin nodes use OpenAI to generate platform-specific images for Instagram, Facebook, and LinkedIn posts. Publish on Social Media: The workflow publishes the generated content and images on the respective platforms: Publish on X: Posts the caption on Twitter/X. Publish on LinkedIn: Posts the caption and image on LinkedIn. Publish on Facebook: Posts the caption and image on Facebook. Publish on Instagram: Posts the caption and image on Instagram. Update Google Sheets: The workflow updates the Google Sheet to mark the posts as published (e.g., "X OK," "Facebook OK," "LinkedIn OK," "Instagram OK"). Set Up Steps To set up and use this workflow in n8n, follow these steps: Google Sheets Setup: Create (or clone) a Google Sheet with columns for POST ID, TEXT, TWITTER, FACEBOOK, INSTAGRAM, and LINKEDIN. Link the Google Sheet to the Google Sheets node by providing the Document ID and Sheet Name. WordPress Integration: Set up WordPress credentials in n8n for the Get Post node. Ensure the WordPress site is accessible via its REST API. AI Model Configuration: Configure the OpenRouter credentials in n8n for the Social Media Manager node. Ensure the AI model is set up to generate platform-specific captions. Image Generation: Set up OpenAI credentials for the Image Instagram and Image Facebook e Linkedin nodes to generate images. Social Media API Integration: Set up credentials for each social media platform: Twitter/X: Configure the Publish on X node with Twitter OAuth2 credentials. LinkedIn: Configure the Publish on LinkedIn node with LinkedIn OAuth2 credentials. Facebook: Configure the Publish on Facebook and Publish on Instagram nodes with Facebook Graph API credentials. Test the Workflow: Click the "Test workflow" button in n8n to trigger the workflow. The workflow will: Fetch the WordPress post content. Generate platform-specific captions and images. Publish the posts on Twitter/X, Facebook, LinkedIn, and Instagram. Update the Google Sheet to mark the posts as published. Optional Customization: Modify the workflow to include additional platforms or customize the AI-generated content further.

Build your own LinkedIn and Facebook Graph API integration

Create custom LinkedIn and Facebook Graph API 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.

LinkedIn supported actions

Create
Create a new post

LinkedIn and Facebook Graph API 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

Automate lead management

Using too many marketing tools? n8n lets you orchestrate all your apps into one cohesive, automated workflow.

Learn more
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 LinkedIn connect with Facebook Graph API?

  • Can I use LinkedIn’s API with n8n?

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

  • Is n8n secure for integrating LinkedIn and Facebook Graph API?

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

Looking to integrate LinkedIn and Facebook Graph API in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate LinkedIn with Facebook Graph API

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