如何设置我的页面在 Facebook 上共享时使用的默认图像?
How can I set the default image used when my page is shared on Facebook?
我曾尝试使用在博客上看到的使用元标记的方法,但它似乎不起作用。
<meta property="og:image" content="http://foo.com/bar/2.jpg">
<meta property="og:image:type" content="image/jpg">
<meta property="og:image:width" content="200">
<meta property="og:image:height" content="150">
您不需要类型、宽度或高度,但您必须添加一些其他字段才能使其正常工作。示例:
<meta property="og:title" content="Online Advertising"/>
<meta property="og:image" content="https://nextlocal.ca/img/logo320.jpg"/>
<meta property="og:site_name" content="NextLocal"/>
<meta property="og:description" content="NextLocal's advertising produces long-lasting results and comes with a guarantee, making it a great investment for your business."/>
除了推荐的开放图标签外,我还包括一个 link 标签:
<link rel='image_src' href='https://example.com/path/x/file.ext' />
(与 og:image content="uri" 具有相同的 uri)
我曾尝试使用在博客上看到的使用元标记的方法,但它似乎不起作用。
<meta property="og:image" content="http://foo.com/bar/2.jpg">
<meta property="og:image:type" content="image/jpg">
<meta property="og:image:width" content="200">
<meta property="og:image:height" content="150">
您不需要类型、宽度或高度,但您必须添加一些其他字段才能使其正常工作。示例:
<meta property="og:title" content="Online Advertising"/>
<meta property="og:image" content="https://nextlocal.ca/img/logo320.jpg"/>
<meta property="og:site_name" content="NextLocal"/>
<meta property="og:description" content="NextLocal's advertising produces long-lasting results and comes with a guarantee, making it a great investment for your business."/>
除了推荐的开放图标签外,我还包括一个 link 标签:
<link rel='image_src' href='https://example.com/path/x/file.ext' />
(与 og:image content="uri" 具有相同的 uri)