Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default website image for social sharing

Is there any way to set a default image that appears when I share my website on Facebook? I've noticed that Facebook usually fetches the first image from the site to use as a thumbnail.

like image 239
paz Avatar asked Oct 28 '13 10:10

paz


People also ask

What is a social sharing image?

Social Sharing Images are small thumbnail image(s) that are displayed when you post your site link on any social media channel (including Facebook) or in text messaging.


2 Answers

You need to set the open graph image meta tag:

<meta property="og:image" content="http://example.com/logo.jpg"> <meta property="og:image:type" content="image/png"> <meta property="og:image:width" content="1024"> <meta property="og:image:height" content="1024"> 

For more info check the docs

like image 99
Patsy Issa Avatar answered Sep 23 '22 23:09

Patsy Issa


<meta property="og:image" content="http://example.com/lamb-full.jpg"> <meta property="og:image:type" content="image/jpeg"> <meta property="og:image:width" content="200"> <meta property="og:image:height" content="200"> 

Image size should be be at least 200px X 200px

like image 33
Raina Vinod Avatar answered Sep 22 '22 23:09

Raina Vinod