无法抓取Facebook网址

时间:2012-10-05 09:16:14

标签: php facebook

我在我的某个网站上有一个iframe应用程序。

我想通过news.reads操作做最简单的发布。

我收到了下一个错误:

Fatal error: Uncaught OAuthException: (#3502) Object at URL http://fb.raal.co.il/ has og:type of 'website'. The property 'article' requires an object of og:type 'article'. thrown in /home1/raalcoil/public_html/fb/src/base_facebook.php on line 1106
看了一下后,我在调试器上遇到了这些错误:

Critical Errors That Must Be Fixed

Facebook URL:   Facebook URLs cannot be crawled.
Errors That Must Be Fixed

Missing Required Property:  The 'og:url' property is required, but not present.
Open Graph Warnings That Should Be Fixed

Inferred Property:  The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property:  The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.

链接到调试器: http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Ffb.raal.co.il%2F

网站本身:http://fb.raal.co.il/

为什么facebook无法抓取我的网站?

1 个答案:

答案 0 :(得分:1)

  

为什么facebook无法抓取我的网站?

因为您自动将重定向页面发送到facebook.com - 更准确地说,是Auth对话框。

您可以在调试器输出中看到 Redirect Path

如果您希望自己的用户被自动重定向到Auth对话框(从用户的角度来看我不喜欢,因为我想在授权之前先查看页面/应用程序必须提供的内容) - 然后只对用户进行操作,即从中排除Facebook刮刀(通过用户代理或/和IP地址)。