开发者

Other Open Graph og:type not being parsed correctly by Facebook linter

As per Open Graph's documentation at http://developers.facebook.com/docs/opengraph , we can specify our own 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 suppo开发者_如何学Gorted og:types. If you are specifying your own type we recommend that you use your own namespace.

Running the linter on a page on my website http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fznood.com%2Fachkar_tools returns the following errors:

Object at URL 'http://znood.com/places/dcGPdl0Psuc' is invalid because the configured 'og:type' of 'znoodcom:store' is invalid

On my other page wich og:type is "city", if you check the linter up top, the og:type is set to "website" (which is bad!) http://developers.facebook.com/tools/debug/og/object?q=znood.com%2Fcities%2FbIYWj4uRhCc

Can someone clarify how to set up custom types that Open Graph can pick? Also, why is the "city" type being replaced with "website" on my page?


Try visiting the Open Graph tool inside your app and declare your Object Type.

https://developers.facebook.com/docs/beta/opengraph/define-objects/


Are you passing in your namespace links in your head tag? Like:

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# yourns: http://ogp.me/ns/fb/yourns#`">

where yourns is your namespace.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜