This Integrator allows you to define Open Graph meta tags. It also renders a live preview (Facebook).
You may have noticed, that there is no og:url
in your property selection.
This property gets appended automatically. Make sure your link generators for objects are up and running!
This is the most basic configuration you need to enable this integrator.
seo:
meta_data_configuration:
meta_data_integrator:
enabled_integrator:
- integrator_name: open_graph
integrator_config:
facebook_image_thumbnail: 'socialThumb'
Add some more types
, properties
and presetts
with this configuration:
seo:
meta_data_configuration:
meta_data_integrator:
enabled_integrator:
- integrator_name: open_graph
integrator_config:
facebook_image_thumbnail: 'socialThumb'
types:
- ['my_type', 'my_type']
properties:
- ['og:test', 'og:test', true] # 3. argument: allow export to xliff translation
presets:
- label: 'My Preset'
icon_class: 'pimcore_icon_user'
fields:
- property: 'og:type'
content: 'og:article'
- property: 'og:description'
content: null
- property: 'og:title'
content: null