【发布时间】:2019-12-30 22:18:30
【问题描述】:
建立我的公司网站并希望在我在 facebook 上分享链接时显示图像。每个页面都会显示正确的元描述和标题,但不会显示图像。 facebook 调试器工具不断给我这个错误,每次我分享一个链接时,它都会说它的内容类型无效。
我希望每次在 facebook 上分享链接时都会出现我的徽标,因此我将其扩展至我的 base.html 文件中。
这是在我的 base.html 页面中:
<meta property="og:image:url" content="{% static 'img/ssg600.png' %}"/>
<meta property="og:image:secure_url" content="{% static 'img/ssg600.png' %}"/>
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="600"/>
<meta property="og:image:height" content="600"/>
<meta property="og:type" content="website"/>
静态链接附加到我的 aws s3 帐户,在我开始使用这些元标记之前,图像在 FB 上显示得很好。现在它不起作用,我不知道为什么。
【问题讨论】:
-
看HTML源代码的url是什么?
标签: html django image facebook-opengraph