page.getOpenGraphImage()

Retrieves the Open Graph image of the page.

Syntax

1page.getOpenGraphImage(): Promise<string>

Returns

Promise<string>

A Promise that resolves to a string containing the Open Graph image of the page.

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Get Open Graph image and Print Details
5const openGraphImage = await currentPage.getOpenGraphImage()
6console.log(openGraphImage)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with