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 us en-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
from website
to profile
and adding your personal information
og:image
Is only supplied if Blogger finds an image in the current post. However, not supplying og: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. pathawks@shortmail.com