我试图将fb-评论添加到我的html页面中,该页面是facebook应用程序的一部分,如下所示:
data-href="http://ec2-107-22-163-16.compute-1.amazonaws.com/?userid=<?php echo $userId ?><?php echo $userTBID ?> "
当我试图呈现页面im时,我得到了以下错误:
Warning: http://ec2-107-22-163-16.compute-1.amazonaws.com/?userid=55700201320 is unreachable.
但我确实是从外面的世界进入的。
now when i click the link , im rederected to the debbuger that tells me this :
Critical Errors That Must Be Fixed
Error Scraping Page: Bad Response Code
Errors That Must Be Fixed
Missing Required Property: The og:url property is required, but not present.
Missing Required Property: The og:type property is required, but not present.
Missing Required Property: The og:title 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.
这是什么呢?我只需要添加对每个logedin用户来说唯一的注释小部件。
更新:
我添加了og标记,但当我将url放入调试im获取响应代码: 403时仍然是这样。
这就是我要说的:
<head>
<title>encomia</title>
<meta property="og:title" content="MyAppName"/>
<meta property="og:url" content="http://ec2-107-22-163-16.compute-1.amazonaws.com/?userid=<?php echo $userId ?><?php echo $userTBID ?>" />
</head>
发布于 2012-01-11 12:30:24
当我去:
http://ec2-107-22-163-16.compute-1.amazonaws.com/?userid=55700201320
我得到了一条403禁止的错误信息。
我敢打赌,Facebook也看到了这一点,而且无法正确地为url擦拭。根据林特,上面写着
错误抓取页:错误响应代码
因此,请确保您返回的200代码与真实的内容,而不是403。
https://stackoverflow.com/questions/8825419
复制相似问题