Adding Open Graph metadata to Blogger is easy.
Simply copy the code below and paste it into your template after the <header>
tag.
A couple notes:
og:locale
Should probably actually reflect the blog's locale instead of just being a hardcoded string. Unfortunately, Blogger only gives usen-us
with a hyphen, instead of an underscore, so that won't work.- If you're using your blog as a personal profile, you may consider changing the second
og:type
fromwebsite
toprofile
and adding your personal information og:image
Is only supplied if Blogger finds an image in the current post. However, not supplyingog:image
is invalid. You could provide an alternate image of your blog logo, or a Gravatar.- If you do something cool with this, I'd love to hear about it. [email protected]
Thanks for this
I have followed the steps above.
I have few images in my blog post uploaded from local.
I have added the code under the header tag in the template html.
Now when i am trying to share the post. i am getting preview of only image i.e. the first one.
Is it possible to get preview of all images ?
best Regards,
Saurav