在 Facebook 上分享有时工作正常,有时则不行(无标题、无描述、无缩略图)
我在 Storify 工作,当我们想在 Facebook 上分享一些故事时遇到了问题。 我们使用元标签来确保故事可以以良好的方式共享。我们主要使用 og:title、og:site_name、og:type、og:url、og:image 和 og:description。
对于某些故事,它就像一个魅力,看起来很棒,例如 http:// /storify.com/elevour/smog-attacks-beijing-yet-again
但有些故事,它根本不起作用,例如 http://storify.com/documentally/40-at-40
我们对两者使用相同的脚本,OpenGraph.in 可以在每个故事上检测我的 og 元标签... < a href="http://www.opengraph.in/?url=http%3A%2F%2Fstorify.com%2Fdocumentally%2F40-at-40&format=html" rel="nofollow noreferrer">http://www.opengraph.in/?url=http%3A%2F%2Fstorify.com%2Fdocumentally%2F40-at-40&format=html
你知道它是什么吗? 这是 Facebook 的错误吗?
I'm working at Storify and we have an issue when we want to share some stories on Facebook.
We are using og meta tags to make sure the story is shareable in a nice way. Mainly, we use og:title, og:site_name, og:type, og:url, og:image and og:description.
For some stories, it works like a charm and it looks terrific, e.g. http://storify.com/elevour/smog-attacks-beijing-yet-again
But some stories, it doesn't work at all, e.g. http://storify.com/documentally/40-at-40
We use the same script for both, and OpenGraph.in can detect my og meta tags on every single story... http://www.opengraph.in/?url=http%3A%2F%2Fstorify.com%2Fdocumentally%2F40-at-40&format=html
Do you have an idea what it can be?
Is it a bug from Facebook?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Vinch,当我通过 facebook 调试器运行这些链接时,我得到的结果非常不一致( https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fstorify.com%2Fdocumentally%2F40-at-40)似乎解析 url 时遇到问题。对于北京链接,它第一次成功解析了它,但在所有后续尝试中都返回了错误,对于 40 链接,我每次都会收到错误。也许这与您在服务器上解析网址的方式有关?当我通过调试器运行用户的网址,例如: http://storify.com/documentally/ 时,它返回来自 http://storify.com/ 的通用 og 数据 ...
Vinch, I'm getting quite inconsistent results when I run these links through the facebook debugger ( https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fstorify.com%2Fdocumentally%2F40-at-40 ) it seems to have trouble parsing the urls. For the beijing link, it did successfully parse it the first time, but has returned an error on all subsequent tries, for the 40 link I get an error every time. Perhaps this has something to do with the way you're resolving urls on your server? When I run a user's url eg: http://storify.com/documentally/ through the debugger, it returns the generic og data from http://storify.com/ ...
问题出在 facebook 缓存上,解决方案是通过访问链接刷新 facebook 缓存。 https://developers.facebook.com/tools/debug/og/object/< /a>
并按下按钮“获取新的抓取信息”。
希望有帮助
The issue is with the facebook cache and solution is to refresh the facebook cache by going to the link. https://developers.facebook.com/tools/debug/og/object/
and pressing the button "Fetch New Scrape information".
Hope it helps