Context

Social media & community client (anonymized) running event contests on Facebook. The goal was to automatically collect identifiers shared by participants across hundreds of comments and store them in a spreadsheet, keeping the comment link for traceability and winner selection.

Objectives

  • Automate extraction of Facebook comments
  • Generate a usable Google Sheet
  • Detect duplicates and validate formats
  • Provide a simple UI

Approach

Python tool with a simple UI to enter a Facebook post ID. Comments are retrieved via the Facebook Graph API with pagination handling. Numeric identifiers are extracted, validated and duplicates detected. Results are automatically written to a Google Sheet via the Google Sheets API, with a link provided to the user. Logs and an execution report ensure traceability.

Deliverables

  • Functional, documented Python tool
  • Facebook Graph API integration
  • Google Sheets API integration
  • User guide

Results achieved

  • Significant time savings for winner selection
  • Reliable extracted data
  • Repeatable and autonomous process
  • Full automation of the contest workflow

A similar project?

Let’s discuss your needs and how to apply these methods to your context.