与Facebook Share Link的兼容性? [英] Compatibility with Facebook Share Link?

查看:202
本文介绍了与Facebook Share Link的兼容性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信这是我的论坛网站的一个问题。

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:

http:// i.stack.imgur.com/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:

http:// i.stack.imgur.com/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...

编辑:
我刚刚记得。几个月前(2011年初),我的论坛没有任何问题(说明正确)。只有最近(大约2011年3月),它开始表现得很奇怪。

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.

推荐答案

FB的共享机制从你的元数据中抽取了大量数据标签。确保它们设置正确,例如

FB's share mechanism pulls a lot of data from your meta tags. Make sure they're set right, e.g.,

<meta name="description" content="your_site_description_here">

FB还遵循开放协议,因此您可以使用它来设置显示的图像等在共享窗口。 ( http://developers.facebook.com/docs/opengraph/ ),例如:

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:

<meta property="og:image" content="/your/site/image.jpg">

将在您/ site / image.jpg上显示任何图像,当您点击共享按钮对于该页面。

would make whatever image is at your/site/image.jpg show up when you hit the share button for that page.

编辑:

在进一步的调查中,FB linter显示您的网站返回403禁止,这意味着它是过滤掉FB的蜘蛛,因为没有被批准的IP列表,或类似的东西。此网址可能包含一些有用的信息:( http://www.invisionmodding.com/topic/47252-how-to-let-facebook-spider-to-visite-my-forum/

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/)

这篇关于与Facebook Share Link的兼容性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆