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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With