就像 - Sharer.php 尽管有元数据但仍忽略图像
尽管有元标签(我以前从未使用过第一个标签,但它出现在 addthis 论坛中);
调试工具以正确的方式获取数据: https://developers .facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.mondiales.nl%2F
facebook 共享器代码不使用指定的图像。根本不显示图像,也没有缩略图选择器。
查看 facebook 共享器页面的 HTML,图像确实在那里!缩略图选择器有一个显示:无。当发布该死的东西时,墙上没有显示任何图像。
停止使用 addthis 并仅使用 Facebook API 实现类似的函数?但据我所知,Facebook 向页面发出请求以获取其数据,因此 JS 部分不应该是问题,不是吗?
我是不是忽略了什么?
Despite the meta tags (the first one I never used before, but it came up in the addthis forums);
And the debug tool getting the data in a correct manner:
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.mondiales.nl%2F
The facebook sharer code does not use the image specified. No images show up at all, there is no thumbnail chooser.
Looking at the HTML of the facebook sharer page, the image is actually there! The thumbnail chooser has a display:none. And when posting the damn thing, no image shows up on the wall.
Stop using addthis and implement a like function using the just the Facebook API? But from what I read, Facebook does a request for the page to get it's data so the JS part should not be the issue, should it?
Did I overlook something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
共享图像的宽度/高度比有限制,该比例必须小于 3.0
您的图像太宽 (211/66 = 3.19) - 添加一些垂直空白,它会共享 OK 我认为
供将来参考这是旧的分享按钮文档和开放图协议文档(在“og:image”下)
There's a restriction on the width/height ratio of images shared, the ratio must be less than 3.0
Your image is too wide (211/66 = 3.19) - add some vertical whitespace and it'll share OK i think
For future reference this is mentioned on both the old Share Button docs and the Open Graph protocol docs (under 'og:image')
我发现,一旦我从共享者或应用程序将某些内容发布到我的墙上,如果我尝试重新发布它,它会记住原始图像(或者在您的情况下没有图像)。
可能值得从浏览器中清除整个缓存/cookie,看看是否有效。
如果没有,您会发现,如果您以 Facebook 的另一个用户身份登录,而他们尝试发布该图片,则会显示他们帐户上的新图像,而不是您的帐户。
我不太确定 Facebook 如何缓存图像。
I've found that once I've posted something to my wall from the sharer or the app, if I try to repost it, it will remember the original image (or no image in your case).
It might be worth clearing the whole cache/cookies from your browser and see if that does the trick.
If not, you'll find that if you log in as another user of Facebook and they try to post it, it will pick up on the new image on their account and not yours.
I'm not exactly sure how Facebook caches the images.
我知道这个线程很旧,但这可能会帮助其他人解决同样的问题。 FB 缓存共享 URL 以及缩略图和描述。要更新缓存,请向共享查询字符串添加一个虚假参数,例如“?v=1”。这会获取最新的 og 标签。
I know this thread is old but this may help someone else with the same issue. FB caches shared urls along with the thumb images and descriptions. To update the cache, add a bogus parameter to your shared query string, like, "?v=1". This gets the latest og tags.