Skip to content
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

og:image not present #5

Open
mahish opened this issue May 5, 2020 · 2 comments
Open

og:image not present #5

mahish opened this issue May 5, 2020 · 2 comments
Labels
question Further information is requested

Comments

@mahish
Copy link

mahish commented May 5, 2020

Hi, first o fall, thank you for the plugin.

I'm having issue with a global image configuration (logo). I would expect to have it as a default og:image but no such meta tag is being generated. Am I doing something wrong? Please, see screenshots. The second one is from FB Debuggger where other image is loaded however I have not specified any image for the page. Or there is no default image? Thank you.

image
image

@matt-j-m
Copy link
Owner

Hi @mahish Facebook will grab the image defined in the og:image meta tag. Using Aura this is set at the page level. If you do not explicitly set it there, Aura will try and use the first image from the attached Page Media (visible on the Content tab of the page editor).

The Organization logo is not used by Aura for the og:image meta tag and therefore cannot be used as a default preview image for all pages. It is instead used for Structured Data output, which is more likely to be displayed by search providers such as Google. Hope that helps.

@matt-j-m matt-j-m added the question Further information is requested label Jun 22, 2020
@mahish
Copy link
Author

mahish commented Jul 14, 2020

@matt-j-m Thanks for your answer and clarification.

One more question:) How about the case when there is no page specific image at all? As I look into the code there is no fallback for such case? I would find useful to have some sort of default image as a fallback.

https://github.com/matt-j-m/grav-plugin-aura/blob/master/classes/aura.php#L122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants