-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate og:image:width and og:image:height #19
Comments
I think it's mostly there to give the user a choice which image he would like to use. Would it harm if we add |
Well, where can you do that? Facebook for instance does not offer to switch through multiple share images, when sharing a post.
I suppose not - though it would generate a lot of additional markup. Also, how would you be able to identify which |
This must have changed because at the time I developed this extension it was possible. Or was it another service... 🤔
Just like a regular array: http://ogp.me/#array |
Yeah, it was possible in the past. That's why I said "for legacy reasons" ;) |
I would preserve the multiple selection of images as the OpenGraph protocol is not a Facebook protocol and other services are potentially making use of those arrays. Agreed? |
Agreed. |
Implemented in d177f82 but this can produce unexpected results because of contao/core-bundle#1214. |
Yeah, see the comments though: you should just combine each |
The 3223cd7 should do then. |
Just bumped into this thread because I was looking for a way to add og:image:width and og:image:height to my page templates in Contao. Anyway, just for the record: It is still (or again?) possible to switch through and select from multiple ogimage files when sharing a URL on Facebook. |
Yeah, I also noticed that this feature has returned on Facebook. |
When a content is shared on Facebook for the first time, the share dialogue won't show the
og:image
right away. There are two ways to make Facebook show the share image even when the URL is shared for the first time: https://stackoverflow.com/a/30361572/374996Within Contao it probably makes sense to take the second approach, i.e. generating
og:image:width
andog:image:height
.Note: I realize your extension allows for more than one
og:image
to be present for legacy reasons. May be this feature should be dropped? I don't think there is any reason anymore to have more than oneog:image
defined.The text was updated successfully, but these errors were encountered: