Closed zaiste closed 5 years ago
Only a handful of meta tags support aliasing. This includes :title
, :site
, and :full_title
, :description
, :keywords
, and links.
In your case instead of aliasing set the og:image
directly:
set_meta_tags og: { image: '/path/to/file.png' }
Meta tag image
is not a valid meta tag as far as I know:
set_meta_tags image: '/path/to/file.png'
Will generate:
<meta name="image" content="/path/to/file.png">
In a layout:
In a controller:
This doesn't set
og:image
.