点击Facebook分享按钮时,图片没有分享到Facebook上。

问题描述 投票:0回答:1

当用户点击Facebook分享时,我想分享一张图片,该图片是链接 "og:image "按钮,但不是分享这张图片。

我在Facebook的分享按钮中加入了一些元标签,如下所述。

<meta property="og:url"                content="https://www.mydomain.co/" />
<meta property="og:type"               content="website" />
<meta property="og:title"              content="KIWI" />
<meta property="og:description"        content="How much does culture influence creative thinking?" />
<meta property="og:image"              content="https://www.mydomain.co/KiwiSite/img/hero-bg.png" />
<meta property=" og:image:width "              content="650" />
<meta property="og:image:height"              content="315" />
<meta property="og:image:alt"              content="Not found image" />

我有以下的链接

任何人都有想法如何分享的图像,我们已经申请了 "OG:图像 "标签。

facebook-share share-button
1个回答
0
投票

看起来你的代码应该可以正常工作。 以下是我网站的元属性标签......

<meta property="og:image" content="https://www.RevoltLib.com/image/revolt-lib.jpg">

这里是分享的URL...

在Facebook上分享RevoltLib.com

这就是结果。

很好用! - 如果你还不确定,为什么不看看

如果你还不确定,为什么不检查一下呢?官方Facebook分享调试器. 这应该能给你更多有用的信息,让你知道你的URL中的问题。 例如,到目前为止,我们一直在分享的URL的状态似乎很好......

https:/developers.facebook.comtoolsdebug?q=revoltlib.com。

© www.soinside.com 2019 - 2024. All rights reserved.