Is it possible to use Object type image in faceboo

2020-02-16 02:12发布

When I try and specify a object type of image for my facebook app, it says that it is reserved... so my question is how do i go about creating this object type... or do I not create an object type and use og type article for all my media types... kind regards to any repsonders... J

3条回答
爷、活的狠高调
2楼-- · 2020-02-16 02:18

There is no image Open Graph type. You should use og:type = article and set og:image to your image thumbnail.

查看更多
够拽才男人
3楼-- · 2020-02-16 02:28

Perhaps you're trying to make the property's begin with the "og:" prefix. I tried this just now. I entered property name "og:anythingyoulike" (because all the built-in fields begin with "og:") and it came back with this error. Then I just typed "anythingyoulike" into the name input field and it worked fine.

It works fine for common terms like "image", "photo", "duration". Tested all three of those.

查看更多
在下西门庆
4楼-- · 2020-02-16 02:29

You may create whatever types you want within your application namespace (see Configuring Object Types) and later use that in your OpenGraph tags:

<meta property="og:type" content="your-og-app:your-type"> 

If you want to use that specific built-in type:

In order to use build-in object types in your app, you will need to register them in the Dev App.

In addition, we have have created a set of predefined groups of meta tags that can be used as a property of any Open Graph object, called complex types. Apps should use these types for properties where possible to help the display and aggregation of actions and objects. Because types are not object types, there are no instances. Rather, the values for a complex type are contained in the object that uses them.

查看更多
登录 后发表回答