To add social sharing for a product, you can add social media share buttons to the product page. To add open graph for the product image, you can add Open Graph meta tags to the HTML code of the product page.
The meta tags should include og:title, og:description, og:image, and og:url. The og:title and og:description tags define the title and description that will be displayed when the page is shared on social media, while the og:image tag specifies the image that will be used as a thumbnail, and the og:url tag defines the URL of the page.
You can use these kind of format
<meta property="og:title" content="Product Name">
<meta property="og:description" content="A brief description of the product">
<meta property="og:image" content="
https://example.com/product-image.jpg">
<meta property="og:url" content="
https://example.com/product/product-slug">