Facebook Events By Location

screenshot of Facebook Events By Location
express

[DEPRECATED] A Express.js-based webservice to get public Facebook events by location

Overview

The Facebook events by location service is an Express.js-based webservice that allows users to retrieve public Facebook events based on location, distance, and search terms. Due to changes in the way Facebook grants access to event data, the service has limitations but can still be a valuable resource for location-based app development.

Features

  • Retrieve Facebook events based on location
  • Filter events by distance from a specific coordinate
  • Search events using specific terms
  • Implement Graph API calls in a three-step approach
  • Unify, filter, and sort results from parallel calls
  • Handle rate limiting and potential instabilities in search results

NPM Package

  1. Create a new folder: mkdir fb-event-test
  2. Change to the directory: cd fb-event-test && npm init --yes
  3. Install the application: npm install facebook-events-by-location
  4. Start the service: node node_modules/facebook-events-by-location/index.js

Git

  1. Clone the repository: git clone https://github.com/tobilg/facebook-events-by-location.git
  2. Navigate to the directory: cd facebook-events-by-location
  3. Install dependencies and run the service: npm i && npm start

Docker

  1. Build the Docker image locally: docker build -t <yourTag> .
  2. Alternatively, use the official image tobilg/facebook-event-search from Docker Hub.
  3. Launch the service with Docker: docker run -d --name fb-event-search -p 3000:3000 tobilg/facebook-event-search

Summary

The Facebook events by location service offers a solution for accessing public Facebook events based on location and search terms. Despite limitations due to changes in Facebook's API access, the service can be installed as an NPM package, cloned from Git, or deployed as a Docker microservice. By following the installation guides provided, users can access event data and incorporate it into their own applications effectively.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.