Asp.net mvc 3 URL处的对象具有og:type的';网站';。财产';配方';需要og:类型的对象

Asp.net mvc 3 URL处的对象具有og:type的';网站';。财产';配方';需要og:类型的对象,asp.net-mvc-3,facebook-graph-api,Asp.net Mvc 3,Facebook Graph Api,我已实施FB timeline集成,我已使用以下代码成功发布在timeline上: FB.api('/me/_recpbox:cook', 'post', { recipe: 'http://samples.ogp.me/187362391384273' }, function (response) { if (!response || response.error) { alert(response.error.message); } else { alert('Post ID: ' + re

我已实施FB timeline集成,我已使用以下代码成功发布在timeline上:

FB.api('/me/_recpbox:cook', 'post', { recipe: 'http://samples.ogp.me/187362391384273' }, function (response) {
if (!response || response.error) {
alert(response.error.message);
} else {
alert('Post ID: ' + response.id);
}
});
此处URL来自fb应用程序设置(打开的图形仪表板页面在您的操作旁边有一个“获取代码”链接)

我必须给出我自己的路径和图像,目前显示的图像是我为我的应用程序设置的图像,可以告诉我如何给出我自己的URL和图像。我尝试过给Vinga我的网站路径,但它说:

Object at URL has og:type of 'website'. The property 'recipe' requires an object of og:type

为recipe对象提供的URL必须在头部具有适当的og标记。有关更多信息,请参阅

请特别注意步骤4:发布操作中的“创建对象页面”部分


另一点需要注意的是,您提供的URL必须可以通过Facebook访问,否则您将得到相同的错误

如果您得到错误“URL处的对象的og:type为“x”。该属性需要og:type为“y”的对象,则您可能有错误的组合。在
og:URL
中的URL页面必须具有正确的
og:type

我在同一篇文章中实现过,但在我提供我的WebSite(或localhost)时路径,它不接受,如果是localhost,我无法在FBlocalhost的调试器工具中检查它,因为URL必须可由FacebookLocalhost访问。如果应用程序以localhost作为画布进行设置,localhost可以工作,否?