Designer API
Control the Webflow Designer
page.getOpenGraphTitle()
Retrieves the Open Graph title of the page.
1page.getOpenGraphTitle(): Promise<string>
Promise<string>
string
A Promise that resolves to a string with the Open Graph title of the page.
1// Get Current Page2const currentPage = await webflow.getCurrentPage() as Page34// Get Open Graph Title5const openGraphTitle = await currentPage.getOpenGraphTitle()6console.log("Open Graph Title", openGraphTitle)
Try this example