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

可紊 提交于 2020-01-20 09:16:51

问题


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


回答1:


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.




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/9061814/is-it-possible-to-use-object-type-image-in-facebook-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!