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
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
由 翻译强力驱动
问题:
回答1:
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.
转载请标明出处:Add image to facebook share