page.getOpenGraphTitle()

Retrieves the Open Graph title of the page.

Syntax

1page.getOpenGraphTitle(): Promise<string>

Returns

Promise<string>

A Promise that resolves to a string with the Open Graph title of the page.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Get Open Graph Title
5const openGraphTitle = await currentPage.getOpenGraphTitle()
6console.log("Open Graph Title", openGraphTitle)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with