page.setOpenGraphDescription(description)

Sets a page’s Open Graph description.

Syntax

1page.setOpenGraphDescription(description: string): Promise<null>

Parameters

  • description: string - The Open Graph description to set.

Returns

Promise<null>

A Promise that resolves to null.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Set Open Graph Description
5await currentPage.setOpenGraphDescription(description)
6
7// Print results
8const openGraphDescription = await currentPage.getOpenGraphDescription()
9console.log("Open Graph Description", openGraphDescription)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canManagePageSettingsAnyAnyAnyAny
Built with