Improving social media embeds
We have already added the important meta tags for search engines. However, social media websites, such as Facebook and X (formerly Twitter), read additional meta tags to improve the embedding of your app on their sites and apps. Most social networks use a standard called Open Graph Meta Tags, which was originally created at Facebook. These tags can contain additional information on the type of page, a special title, the description, and an image for embedding the page on a social media website.
Open Graph meta tags
The Open Graph (OG) meta tags have four generic properties that every page can have:
og:type
: Describes the type of the page; specific types may have additional propertiesog:title
: Describes the title of the page as it should appear on embedsog:image
: An URL to an image that should be used for the embedog:url
: An URL to a link that should be used for the embed
The og:type
meta tag describes the type of content...