I created a web app using flutter and hosted that using firebase. With firebase I got a hosting url as app-name.web.app
SO is there a way to add an image preview whenever I share that url on social media?
In the image below, 1st url doesn't have any preview image, and in the second url we can see the image preview.
I think you mean the <meta property="og:image" content="<URL to your image>">
tag
This tags are used for social media sharing. There are several more.
Have a look at Open Graph protocol
Add the tags you need to your web/index.html .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.