Javascript PHP:自定义facebook共享链接中的图像

Javascript PHP:自定义facebook共享链接中的图像,javascript,php,html,Javascript,Php,Html,我使用如下脚本共享到facebook的链接: <a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=&t=" title="Share on Facebook" target="_parent" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.UR

我使用如下脚本共享到facebook的链接:

<a class="facebook" href="https://www.facebook.com/sharer/sharer.php?u=&t=" title="Share on Facebook" target="_parent" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(document.URL) + '&t=' + encodeURIComponent(document.URL), 'sharer', 'toolbar=0,status=0,width=548,height=325'); return false;"></a>
就在弹出facebook共享时,根据原始图像,图片太大了。如何将图像设置为最小化? 例如,700x700图像的原始大小。。当共享映像变为200x200时。解决方案是什么?

根据:

图像大小

使用至少为1200 x 630像素的图像 最好在高分辨率设备上显示。至少,你应该 使用600 x 315像素的图像显示带有 更大的图片。图像大小可达8MB

我们还重新设计了链接页面帖子,以便 桌面和移动新闻源中的图像是相同的。努力保持 您的图像的纵横比尽可能接近1.91:1,以显示 完整的图像在新闻饲料没有任何裁剪

还应检查设置页面图像元数据的示例:

<meta property="og:image" content="http://example.com/ogp.jpg" />
<meta property="og:image:secure_url" content="https://secure.example.com/ogp.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="300" />
<meta property="og:image:alt" content="A shiny red apple with a bite taken out" />

查看OG标签,特别是OG:image:也就是说,你最好提供一个漂亮的大图像,让Facebook选择它显示的大小。oke我使用标签元。。图像未显示?怎么做?你能提供你把这些标签放在上面的链接以供检查吗?