将图片添加到脸书分享 [英] Add image to facebook share
本文介绍了将图片添加到脸书分享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试通过 https://开发人员添加图片到页面共享.facebook.com / docs / plugins / share-button /
但是,我似乎找不到如何添加一个图像到facebook share post
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
推荐答案
正如Facebook正式评论的那样,Facebook使用打开图表元标记
As rightly commented by demrks, Facebook uses open graph meta tags.
对于您的具体问题,您可以使用 og:image
元标记
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.
您可以使用 Facebook url调试器查看您的网址在时间轴上的显示方式。
You can check how your url appears on the timeline by using the Facebook url debugger.
这篇关于将图片添加到脸书分享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文