与 Facebook 分享链接兼容吗?
我相信这是我的论坛板网站的问题。
如果我尝试共享从论坛板到我的网站的链接,链接信息/链接缩略图看起来很奇怪。没有页面标题,没有描述,没有缩略图——什么都没有,只有看起来很糟糕的链接。这是一个屏幕截图:
https://i.sstatic.net/TEUg8.png
这不是这样的它应该显示,对吧?奇怪的是,如果我分享主主页(而不是论坛板)的链接,它将正确显示。就像这个:
https://i.sstatic.net/2ekL3.png
最奇怪的事情这种情况只发生在我的论坛板上。在我的主网站上这是完全正常的。为什么会出现这种情况?我曾经读过元标签和元描述会影响这个东西,但我的元标签和元描述很好......
编辑: 我刚刚想起来。几个月前(大约 2011 年初)我的论坛版块没有任何问题(描述显示正确)。直到最近(大约 2011 年 3 月)它才开始表现得很奇怪。
I believe this is a problem with my forum board site.
If I'm trying to share a link from my forum board to my site, the link info/link thumbnail looks weird. No page title, no description, no thumbnail-nothing at all, only bad-looking link. Here's an screenshot:
https://i.sstatic.net/TEUg8.png
That's not the way it's supposed to show, right? Oddly, if I share a link from my main homepage (not from the forum board), it will display correctly. Like this one:
https://i.sstatic.net/2ekL3.png
The most weird thing is that only happens in my forum board. It's perfectly normal on my main site. Why does this happen? I once read meta tags and meta description affect this stuff, but my meta tags and meta description are fine...
EDIT:
I've just remembered. A few months ago (about early 2011) there's nothing wrong with my forum boards (the description appears properly). It's only recently (about March 2011) it starts to behave weirdly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
FB 的共享机制从您的元标记中提取大量数据。确保它们设置正确,例如,
FB 也遵循 opengraph 协议,因此您可以使用它来设置共享窗口上显示的图像等。 (http://developers.facebook.com/docs/opengraph/),例如:
会当您点击该页面的共享按钮时,显示您的/site/image.jpg 中的任何图像。
编辑:
经过进一步调查,FB linter 显示您的网站返回 403 禁止,这意味着它正在过滤掉 FB 的蜘蛛,因为它不在批准的 IP 列表中,或类似的东西。此 URL 可能包含一些有用的信息:(http://www.invisionmodding.com/topic/47252-how-to-let-facebook-spider-to-visite-my-forum/)
FB's share mechanism pulls a lot of data from your meta tags. Make sure they're set right, e.g.,
FB also follows the opengraph protocol, so you can use that to set the images, etc that show up on the share window. (http://developers.facebook.com/docs/opengraph/), ex:
would make whatever image is at your/site/image.jpg show up when you hit the share button for that page.
EDIT:
On further investigation, the FB linter shows that your site returns a 403 forbidden, which means that it's filtering out FB's spider for not being in an approved IP list, or something similar. This URL may contain some helpful info: (http://www.invisionmodding.com/topic/47252-how-to-let-facebook-spider-to-visite-my-forum/)