在Facebook上分享主题(sharing topics on Facebook)

我有一个带有Facebook分享按钮的页面,如何指定共享时将显示的图像。

我尝试以这种方式将图像放在元标记中:

<meta property='og:image' content='image_url' />

但它仍然没有显示Facebook上的图像

I have a page with facebook share button, how do I specify the image that will be displayed when sharing.

I tried to put an image in meta tag this way:

<meta property='og:image' content='image_url' />

but it shows no image on facebook still

最满意答案

内容必须具有图像的完整URL,而不仅仅是服务器上的文件位置:正确的方法是:content ='mysite.com / file_location'和Not:content ='file_cocation'

Content must have the full URL of the image not just the file location on the server: the right way is: content='mysite.com/file_location' and Not: content='file_cocation'

在Facebook上分享主题(sharing topics on Facebook)

我有一个带有Facebook分享按钮的页面,如何指定共享时将显示的图像。

我尝试以这种方式将图像放在元标记中:

<meta property='og:image' content='image_url' />

但它仍然没有显示Facebook上的图像

I have a page with facebook share button, how do I specify the image that will be displayed when sharing.

I tried to put an image in meta tag this way:

<meta property='og:image' content='image_url' />

but it shows no image on facebook still

最满意答案

内容必须具有图像的完整URL,而不仅仅是服务器上的文件位置:正确的方法是:content ='mysite.com / file_location'和Not:content ='file_cocation'

Content must have the full URL of the image not just the file location on the server: the right way is: content='mysite.com/file_location' and Not: content='file_cocation'