# @types/passport-facebook-token

> TypeScript definitions for passport-facebook-token

Latest version **0.4.40** (published 2026-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/passport-facebook-token
pnpm add @types/passport-facebook-token
yarn add @types/passport-facebook-token
bun add @types/passport-facebook-token
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.40 |
| Published | 2026-01-10 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/passport-facebook-token
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-facebook-token
- npm.io page: https://npm.io/package/@types/passport-facebook-token

## Dependencies (2)

- [@types/express](https://npm.io/package/@types/express.md) *
- [@types/passport](https://npm.io/package/@types/passport.md) *

## Recent versions

- 0.4.40 (latest) — 2026-01-10
- 0.4.38 (ts4.8) — 2023-11-07
- 0.4.35 (ts4.3) — 2021-07-08
- 0.4.34 (ts3.3) — 2020-01-02
- 0.4.33 (ts2.4) — 2017-11-23
- 0.4.30 (ts2.2) — 2017-06-27
- 0.4.29 (ts2.0) — 2016-09-19
- 0.4.39 — 2025-10-24
- 0.4.37 — 2023-10-18
- 0.4.36 — 2023-09-24
- 0.4.32 — 2017-11-07
- 0.4.31 — 2017-10-25
- 0.4.28 — 2016-07-14
- 0.4.27-alpha — 2016-07-08
- 0.4.26-alpha — 2016-07-04
- … 7 more at https://npm.io/package/@types/passport-facebook-token/versions

## README

# Installation
> `npm install --save @types/passport-facebook-token`

# Summary
This package contains type definitions for passport-facebook-token (https://github.com/drudge/passport-facebook-token).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-facebook-token.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-facebook-token/index.d.ts)
````ts
import express = require("express");
import * as passport from "passport";

declare namespace PassportFacebookToken {
    interface StrategyStatic {
        new(options: StrategyOptionsWithRequest, verify: VerifyFunctionWithRequest): StrategyInstance;
        new(options: StrategyOptions, verify: VerifyFunction): StrategyInstance;
    }

    interface StrategyInstance {
        name: string;
        authenticate: (req: express.Request, options?: any) => void;
    }

    interface ValueObject {
        value: string;
    }

    interface Profile extends passport.Profile {
        provider: string;
        id: string;
        displayName: string;
        name: {
            familyName: string;
            givenName: string;
            middleName: string;
        };
        gender: string;
        emails: ValueObject[];
        photos: ValueObject[];
        _raw: string;
        _json: any;
    }

    interface StrategyOptions {
        clientID: string;
        clientSecret: string;
        authorizationURL?: string | undefined;
        tokenURL?: string | undefined;
        scopeSeparator?: string | undefined;
        enableProof?: boolean | undefined;
        profileFields?: string[] | undefined;
        fbGraphVersion?: string | undefined;
    }

    interface StrategyOptionsWithRequest extends StrategyOptions {
        passReqToCallback: true;
    }

    type VerifyFunction = (
        accessToken: string,
        refreshToken: string,
        profile: Profile,
        done: (error: any, user?: any, info?: any) => void,
    ) => void;

    type VerifyFunctionWithRequest = (
        req: express.Request,
        accessToken: string,
        refreshToken: string,
        profile: Profile,
        done: (error: any, user?: any, info?: any) => void,
    ) => void;
}

declare const PassportFacebookToken: PassportFacebookToken.StrategyStatic;
export = PassportFacebookToken;

````

### Additional Details
 * Last updated: Sat, 10 Jan 2026 00:47:09 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/passport](https://npmjs.com/package/@types/passport)

# Credits
These definitions were written by [Ray Martone](https://github.com/rmartone).

---
_Source: https://npm.io/package/@types/passport-facebook-token · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
