Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add image to facebook share

I'm trying to add an image to page share via https://developers.facebook.com/docs/plugins/share-button/ However, I can't seem to find how can I add an image to the facebook share post

like image 328
Eliezer Broide Avatar asked Nov 18 '13 11:11

Eliezer Broide


1 Answers

As rightly commented by demrks, Facebook uses open graph meta tags.

For your specific problem, you can use the og:image meta tag,

<meta name='og:image' content='path'>

Replace path with the path to where your image is.

You can check how your url appears on the timeline by using the Facebook url debugger.

like image 161
Ranveer Avatar answered Sep 28 '22 02:09

Ranveer