Никита Дубко, Веб-стандарты
Никита Дубко, Веб-стандарты
<head>
<title>Fwdays: JS is back!</title>
<meta property="og:title"
content="Fwdays: JS is back!">
<meta property="og:type"
content="website">
<meta property="og:url"
content="https://fwdays.com/">
<meta property="og:image"
content="https://fwdays.com/og_image.jpg" />
</head>
<head>
<title>Fwdays: JS is back!</title>
<meta property="og:title"
content="Fwdays: JS is back!">
<meta property="og:type"
content="website">
<meta property="og:url"
content="https://fwdays.com/">
<meta property="og:image"
content="https://fwdays.com/og_image.jpg" />
</head>
og:*
og:title
og:description
og:image
og:site_name
og:type
article
article:published_time
article:modified_time
article:expiration_time
article:author
article:tag
video.movie
video:actor
video:actor:role
video:director
video:writer
video:duration
video:release_date
video:tag
og:image
<meta property="og:image"
content="https://fwdays.com/ogp.jpg">
<meta property="og:image:secure_url"
content="https://s.fwdays.com/ogp.jpg">
<meta property="og:image:type"
content="image/jpeg">
<meta property="og:image:width"
content="1200">
<meta property="og:image:height"
content="630">
<meta property="og:image:alt"
content="Happy people are smiling">
<meta property="og:image"
content="https://mefody.dev/og-s.jpg">
<meta property="og:image:width" content="300">
<meta property="og:image:height" content="300">
<meta property="og:image"
content="https://mefody.dev/og-l.jpg">
<meta property="og:image:width" content="1000">
<meta property="og:image:height" content="1000">
og:locale
og:determiner
fb:app_id
og:asset
<meta name="twitter:card"
content="summary">
twitter:card
twitter:site
twitter:creator
<meta name="pinterest-rich-pin"
content="false">
Pinterest Developers
og:availability
Twitterbot/1.0
facebookexternalhit/1.1
TelegramBot (like TwitterBot)
User-agent: Twitterbot
Disallow:
The Twitter web crawler re-indexes the Card tag information on your page roughly every seven days.
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setViewport({
width: 1200,
height: 630,
deviceScaleFactor: 1,
});
await page.goto(url);
const screenshotBuffer = await page.screenshot({
fullPage: false,
type: 'png',
});
await page.close();