---
title: "Facebook Oauth Callback"
method: GET
path: "/api/v1/auth/facebook/callback"
tags: ["auth"]
---

# Facebook Oauth Callback

`GET /api/v1/auth/facebook/callback`

## Request

- Base URL: `https://api.alert.camp` (the document declares no server; this is the origin it was published from)
- URL: `https://api.alert.camp/api/v1/auth/facebook/callback`
- Auth: none declared

Facebook OAuth callback.

Receives the authorization code from Facebook, validates the state nonce,
stores the FB code for deferred processing, and redirects to the app
via deep link. All heavy work (token exchange, Firebase sign-in, DB)
happens in /facebook/exchange so the browser dismisses instantly.

## Query parameters

- `code` string, nullable
- `state` string, nullable
- `error` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alert/apis/alertcamp.md) · [All operations](https://skmtc.dev/alert/apis/alertcamp/llms.txt) · [OpenAPI document](https://skmtc.dev/alert/apis/alertcamp/revisions/864c8c9ef833?raw)
