Get Started
Screenshot of n8n workflow
FREE TEMPLATE
Automate Facebook Comment Collection
14
Views
0
Downloads
11
Nodes
Download Template
Free
Preview Template
Utility Rating
6 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
Facebook Graph API
Trigger Type
Approx setup time ≈ 25 min
Need help setting up this template?
Ask in our free Futurise community
About
Community
Courses
Events
Members
Templates

How to Automate Facebook Comment Collection?

Leon Petrou
FREE TEMPLATE
Automate Facebook Comment Collection
14
Views
0
Downloads
11
Nodes
Download Template
Free
Preview Template
Utility Rating
6 / 10
Business Function
Marketing
Automation Orchestrator
n8n
Integrations
Facebook Graph API
Trigger Type
Approximate setup time ≈ 25 minutes
Need help setting up this template?
Ask in our free Futurise community

Description

Pull the latest Facebook Page posts and comments into clean records so your team can review feedback faster. Great for social media and community teams that need quick visibility on what people are saying under recent posts.

The flow runs on demand. You set the Page ID and the number of posts to fetch. It calls the Facebook Graph API to get the page feed, splits the posts, and then gets comments for each post in reverse chronological order. A code step reverses one branch so the merge stays aligned by position. It filters out empty results, splits comments into single rows, and maps clear fields like post id and created time. The end result is a tidy stream of post and comment data that is ready for reporting or export to your tools.

You need page access and Facebook Graph API credentials with the right permissions. Add your Page ID and choose how many posts to review. Expect faster moderation, simpler reporting, and fewer copy and paste tasks. Use it for daily engagement checks, pulling comment sentiment samples, or tracking comment volume on new campaigns.

Copy link

Tools Required

What this workflow does?

  • On demand run using a manual trigger for quick checks
  • Simple parameters to set Page ID and how many posts to fetch
  • Uses Facebook Graph API v20 to read the page feed with a limit
  • Splits the feed so each post is processed on its own
  • Gets comments for each post with fields id from message created time and comment count
  • Orders comments in reverse chronological for the most recent first
  • Reverses one branch so the merge lines up by position
  • Filters out null comments and splits them into single items
  • Maps clear result fields like post id and created time for easy export

What are the benefits?

  • Reduce manual review from 60 minutes to 5 minutes for the latest 10 posts
  • Automate 90 percent of copy and paste when collecting comments
  • Improve data accuracy by removing manual entry errors
  • Handle up to 50 posts per run by changing one number
  • Unify post and comment data in one structured stream

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Facebook Graph API. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create a Facebook Graph API credential. If unsure, double click any Facebook Graph API node, choose Credential to connect with, click Create new credential, and follow the on screen steps to sign in and grant page permissions.
  4. Confirm your Facebook user has access to the target Page and the right scopes to read page feed and comments.
  5. Open the node named Set PageID & Number of Latest Posts and enter your Page ID and the number of posts you want to pull.
  6. Open the Facebook Graph API node that reads the feed and confirm the endpoint uses {{$json.FB_Page_Id}}/feed and that the limit parameter points to Number_of_Latest_Posts.
  7. Save the workflow and click Execute to run a test. Check the Split Out Posts node to confirm you see one item per post.
  8. Open the Facebook Get Each Post Comments node and verify you see recent comments with id from message created time and comment count fields.
  9. Inspect the Merge Post & Comments output. You should see post data aligned with the related comments. If not, confirm the Reverse Item to Match another Branch node is connected to the second input of the Merge node.
  10. Review the Filter Out Null Comments and Split Out Comments results. You should see only real comments. Adjust the number of latest posts if you need more or fewer records.

Need help or want to customize this?

Similar Templates

n8n
Marketing
Automate Telegram Facebook Audience Research
Get Facebook ad interest ideas straight from a Telegram message. Media buyers type a hashtag command in a group, and a CSV file comes back with interest names and audience sizes that they can use in ads. When the bot sees a message that starts with #interest in a specific Telegram chat, it extracts the keyword. It sends that keyword to the Facebook Graph API adinterest search. The flow then reshapes the results into rows with name, audience size bounds, topic, path, and id. A CSV file is created and returned to the same Telegram group as a document. Messages that do not match the chat id or the hashtag are ignored, so noise does not trigger the search. You will need a Telegram bot token, the group chat id, and a Facebook Graph access token. Add the bot to the group, set the chat id in the filter and send nodes, and keep the #interest format for commands. Expect faster testing and better team collaboration. It helps agencies and growth teams collect interest clusters quickly, share results in chat, and cut manual research time by a large margin.
12 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.