Skip to content

[I2-17] Added backend events API #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

someretical
Copy link

@someretical someretical commented Jun 16, 2025

New API endpoints:

  • /events gets all events - to be used by the frontend (format listed below)
  • /eventsWebhook endpoint used by the facebook webhook

Events format:

  public id: string;
  public title: string;
  public startTime: string;
  public endTime?: string;
  public location: string;
  public imageUrl: string;
  public link: string;

.env fields required - None of these should be exposed to the user

FB_WEBHOOK_VERIFY_TOKEN=
FB_EVENT_PAGE_ID=
FB_APP_ID=
FB_APP_SECRET=
FB_ACCESS_TOKEN=

@someretical
Copy link
Author

i trolled too close to the sun, need to treat edit/create differently for the webhook listener

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant