# genPageMetadata Reference

The `genPageMetadata` function generates the metadata for a page, including the title, description, canonical URL, and Open Graph and Twitter metadata.

## Parameters

The `genPageMetadata` function accepts one parameter, an object containing the following properties:

### `title` (required)

**type:** `string`

**Added in:** `seo-in-nextjs@1.0.0`

The title of the page.

### `description` (required)

**type:** `string`

**Added in:** `seo-in-nextjs@1.0.0`

The description of the page.

### `pageRoute` (required)

**type:** `string`

**Added in:** `seo-in-nextjs@1.0.0`

The route for the page.

### `ogImg`

**type:** `string`

**Added in:** `seo-in-nextjs@1.0.0`

**default:** `defaultOgImg` (if specified)

The URL of the Open Graph image.