根据位于 http://developers.facebook.com/docs/opengraph 的 Open Graph 文档,我们可以指定我们自己的 og:types。
If your object does not fit into one of the types above, you can specify your own type. This will be represented as type other on Facebook. We will monitor the most commonly used types and graduate them to fully supported og:types. If you are specifying your own type we recommend that you use your own namespace.
在我网站的页面上运行 linter http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fznood.com%2Fachkar_tools返回以下错误:
Object at URL 'http://znood.com/places/dcGPdl0Psuc' is invalid because the configured 'og:type' of 'znoodcom:store' is invalid
在我的另一个页面上,og:type 是“city”,如果你在顶部检查 linter,og:type 设置为“website”(这很糟糕!) http://developers.facebook.com/tools/debug/og/object?q=znood.com%2Fcities%2FbIYWj4uRhCc
有人可以阐明如何设置 Open Graph 可以选择的自定义类型吗?另外,为什么我页面上的“城市”类型被替换为“网站”?
最佳答案
尝试访问您应用中的开放图谱工具并声明您的对象类型。
https://developers.facebook.com/docs/beta/opengraph/define-objects/
关于facebook - 其他开放图 og :type not being parsed correctly by Facebook linter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7552723/