Is it possible to use Object type image in facebook app?

后端 未结 3 1548
无人及你
无人及你 2020-12-22 07:24

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 no

相关标签:
3条回答
  • 2020-12-22 07:58

    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.

    0 讨论(0)
  • 2020-12-22 08:01

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

    0 讨论(0)
  • 2020-12-22 08:08

    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.

    0 讨论(0)
提交回复
热议问题