Open Graph protocol
Screenshot of a YouTube page social share preview on Facebook
<head>
    <title>YouTube Page Metadata Shared on Facebook</title>
    ...
    <meta property="og:url" content="https://www.youtube.com">
    <meta property="og:title" content="YouTube">
    <meta property="og:type" content="website">
    <meta property="og:description" content="Enjoy the videos and music you love...">
    <meta property="og:image" content="https://www.youtube.com/img/desktop/yt_1200.png">
    ...
</head>
<!-- The URL of the page opened when clicking the preview -->
<meta property="og:url" content="https://www.example.com">

<!-- The title of the web page displayed when shared -->
<meta property="og:title" content="Web Page Title">

<!-- The type of the web page being shared -->
<meta property="og:type" content="website">

<!-- The description of the web page displayed when shared -->
<meta property="og:description" content="Web Page Description">

<!-- The URL of the thumbnail image displayed when shared -->
<!-- Recommended image size: 1200x630px -->
<meta property="og:image" content="https://www.example.com/image.jpg">
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
    <head>
        <meta charset="utf-8">
        <title>Basic Structure of Open Graph Protocol</title>
        <meta property="og:url" content="https://www.example.com">
        <meta property="og:title" content="Web Page Title">
        <meta property="og:type" content="website">
        <meta property="og:description" content="Web Page Description">
        <meta property="og:image" content="https://www.example.com/image.jpg">
        ...
    </head>
    <body>
        <h1>Basic Structure of Open Graph Protocol</h1>
        <p>
            This web page uses
            the Open Graph protocol
            to optimize social media sharing.
        </p>
    </body>
</html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="Site Name">
<meta property="og:audio" content="https://www.example.com/audio.mp3">
<meta property="og:video" content="https://www.example.com/video.mp4">
<meta property="og:type" content="[type code]">
<meta property="og:type" content="article">
<meta property="og:title" content="How Artificial Intelligence Technology...">
<meta property="og:description" content="Recent advances in AI technology...">
<meta property="article:author" content="John Doe">
<meta property="article:published_time" content="2024-05-19">
<meta property="article:section" content="IT/Science">
<meta property="og:type" content="website">
<meta property="og:type" content="video.other">
<meta property="og:title" content="[Video Title]">
<meta property="og:description" content="[Video Summary]">
<meta property="og:image" content="[Thumbnail Image URL]">
<meta property="og:url" content="[Video URL]">
<meta property="og:video" content="[Video File URL]">
<meta property="og:video:width" content="1280">
<meta property="og:video:height" content="720">
<meta property="og:type" content="book">
<meta property="og:title" content="[Author Name] - [Book Title]">
<meta property="og:description" content="Brief summary of the book...">
<meta property="og:image" content="[Book Cover Image URL]">
<meta property="og:url" content="[Book Information Page URL]">
<meta property="book:author" content="[Author Name]">
<meta property="book:isbn" content="9788954614367">
<meta property="og:type" content="profile">
<meta property="og:title" content="John Doe">
<meta property="og:description" content="A web developer interested in artificial...">
<meta property="og:image" content="[Profile Image URL]">
<meta property="og:url" content="[Profile Page URL]">
<meta property="profile:first_name" content="John">
<meta property="profile:last_name" content="Doe">
<meta property="profile:gender" content="male">