Closed hvelarde closed 7 years ago
Looking at the implementation of Pinterest, Google+ and Linkedin, they don't provide Open Graph tags, so you must enable Facebook to make it work.
Knowing this, we need to have Open Graph meta tags if Facebook or Pinterest or Linkedin or Twitter or Google+ plugin is enabled, what looks as a bug.
After talking with @hvelarde, his suggestion was to always show meta tags from Open Graph and just add the other tags in the respective plugin.
This interesting post give us some guidelines on how to achieve this for Twitter, Facebook, Google+ and Pinerest, and Linkedin uses the same Open Graph meta tags.
So I suggest to move the Open Graph meta tags into the main metatag.pt template.
One think need to take care is about Facebook recommendation to have image resolution bigger than 1200x630 to play well with high resolution devices, we already have some code to do this (1 and 2) and we have to decide if we keep this code or not. Remember that the same meta tag will be used for the other plugins.
Other suggestion from @hvelarde is to disable default Plone 5 metatag viewlet and enable our viewlet instead.
this is what the documentation says:
Image Sizes Use images that are at least 1200 x 630 pixels for the best display on high resolution devices. At the minimum, you should use images that are 600 x 315 pixels to display link page posts with larger images. Images can be up to 8MB in size.
so, we can use the large
scale for Facebook also.
The following comes from the Twitter documentation:
I suggest to remove the redundant markup to reduce the complexity of the code and the time to process each request.