Skip to content

Instantly share code, notes, and snippets.

@dipeshhkc
Created November 4, 2020 08:44
Show Gist options
  • Save dipeshhkc/3769d45024ef177f8111dca58716991d to your computer and use it in GitHub Desktop.
Save dipeshhkc/3769d45024ef177f8111dca58716991d to your computer and use it in GitHub Desktop.
import Head from "next/head";
export default function Home() {
return (
<div>
<Head>
<title>
Social Media Preview
</title>
<meta property="og:url" content="your url" />
<meta property="og:type" content="website" />
<meta property="fb:app_id" content="your fb app id" />
<meta
property="og:title"
content="Social Media Preview Working?"
/>
<meta name="twitter:card" content="summary" />
<meta
property="og:description"
content="Hurray!! Yes Social Media Preview is Working"
/>
<meta property="og:image" content={"url of image"} />
</Head>
<h2>
Hurray!!! The Website is Complete. Lets Try Social Media Preview Now
</h2>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment