This n8n workflow automatically retrieves the latest posts from a specified Facebook Page and collects all their associated comments. It filters out null entries, combines post and comment data, and prepares a clean dataset that includes detailed fields like post content, comment messages, timestamps, and commenter names. Ideal for content analysis, sentiment tracking, or engagement reporting.
Key Features
✅ Manual Trigger to Start Workflow
Run the flow manually with one click—ideal for testing or scheduled execution.
✅ Facebook Graph API Integration
Fetches posts and comments using official Graph API, with customizable query parameters.
✅ Clean Data Structuring
Splits posts and comments, filters null values, and maps specific fields like post/message/comment IDs, timestamps, and user names.
✅ Data Merging Logic
Intelligently merges post and comment information for easy post-level analysis.
✅ Flexible Post Count Configuration
Set how many of the latest posts you want to analyze.
✅ Ready for Logging or Export
The structured output is ideal for pushing to spreadsheets, dashboards, or databases for further processing.
Use Case
Perfect for social media managers, marketing teams, or developers who need structured comment data from a Facebook page to analyze audience engagement, feedback trends, or content performance.