{"id":53,"date":"2014-05-01T19:43:00","date_gmt":"2014-05-01T19:43:00","guid":{"rendered":"https:\/\/www.tech-and-dev.com\/blog\/2014\/05\/01\/adding-facebook-open-graph-og-meta-tags-on-blogger\/"},"modified":"2021-02-22T01:02:20","modified_gmt":"2021-02-22T01:02:20","slug":"adding-facebook-open-graph-og-meta-tags-blogger","status":"publish","type":"post","link":"https:\/\/www.tech-and-dev.com\/blog\/2014\/05\/adding-facebook-open-graph-og-meta-tags-blogger.html","title":{"rendered":"Adding Facebook Open Graph (OG) Meta Tags On Blogger"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/facebook-logo.jpg\"><img decoding=\"async\" title=\"Facebook Logo\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2021\/02\/facebook-logo.jpg\" alt=\"Facebook Logo\" border=\"0\" \/><\/a><\/div>\n<div style=\"text-align: center;\"><\/div>\n<p>Addding Open Graph Meta Tags on Facebook is straightforward.<\/p>\n<p>Go to blogger Dashboard =&gt; Template =&gt; Edit HTML<\/p>\n<p>On top of the code, find the &lt;html&gt; tag, it should look similar to this:<\/p>\n<blockquote><p>&lt;html b:version=&#8217;2&#8242; class=&#8217;v2&#8242; expr:dir=&#8217;data:blog.languageDirection&#8217; xmlns=&#8217;http:\/\/www.w3.org\/1999\/xhtml&#8217; xmlns:b=&#8217;http:\/\/www.google.com\/2005\/gml\/b&#8217; xmlns:data=&#8217;http:\/\/www.google.com\/2005\/gml\/data&#8217; xmlns:expr=&#8217;http:\/\/www.google.com\/2005\/gml\/expr&#8217;&gt;<\/p><\/blockquote>\n<p>Add the Facebook xml namespace by adding the following line inside the tag (Before the <span style=\"color: red;\"><b>&gt;<\/b><\/span> character):<\/p>\n<blockquote><p>xmlns:og=&#8217;http:\/\/ogp.me\/ns#&#8217;<\/p><\/blockquote>\n<p>So the html tag should look similar to:<\/p>\n<blockquote><p>&lt;html b:version=&#8217;2&#8242; class=&#8217;v2&#8242; expr:dir=&#8217;data:blog.languageDirection&#8217; xmlns=&#8217;http:\/\/www.w3.org\/1999\/xhtml&#8217; xmlns:b=&#8217;http:\/\/www.google.com\/2005\/gml\/b&#8217; xmlns:data=&#8217;http:\/\/www.google.com\/2005\/gml\/data&#8217; xmlns:expr=&#8217;http:\/\/www.google.com\/2005\/gml\/expr&#8217; xmlns:og=&#8217;http:\/\/ogp.me\/ns#&#8217;&gt;<\/p><\/blockquote>\n<p>Before the <span style=\"color: red;\">&lt;\/head&gt;<\/span> tag, paste the following:<\/p>\n<blockquote><p>&lt;!&#8211; Open Graph Meta Tags BEGIN &#8211;&gt;<br \/>\n&lt;meta expr:content=&#8217;data:blog.pageName&#8217; property=&#8217;og:title&#8217;\/&gt;<br \/>\n&lt;b:if cond=&#8217;data:blog.postImageUrl&#8217;&gt;<br \/>\n&lt;\/b:if&gt;<br \/>\n&lt;meta expr:content=&#8217;data:blog.title&#8217; property=&#8217;og:title&#8217;\/&gt;<br \/>\n&lt;meta expr:content=&#8217;data:blog.canonicalUrl&#8217; property=&#8217;og:url&#8217;\/&gt;<br \/>\n&lt;b:if cond=&#8217;data:blog.metaDescription&#8217;&gt;<br \/>\n&lt;meta expr:content=&#8217;data:blog.metaDescription&#8217; property=&#8217;og:description&#8217;\/&gt;<br \/>\n&lt;\/b:if&gt;<br \/>\n&lt;!&#8211; Open Graph Meta Tags END &#8211;&gt;<\/p><\/blockquote>\n<p>That&#8217;s it! Before testing your page on Facebook, Make sure to debug your page to re-cache your blog&#8217;s info:<br \/>\n<a href=\"https:\/\/developers.facebook.com\/tools\/debug\">https:\/\/developers.facebook.com\/tools\/debug <\/a><\/p>\n<div style=\"text-align: justify;\">Also please note, that many blogs provides the wrong information, by using &#8220;data:blog.postImageThumbnailUrl&#8221; instead of &#8220;data:blog.postImageUrl&#8221;, which will result in the following error on Facebook debugger:<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: red;\">Provided og:image is not big enough. Please use an image that&#8217;s at least 200&#215;200 px. <\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">In order to prevent this, you can use the code above, and make sure you have a picture on your blog post with at least 200&#215;200 pixels.<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Addding Open Graph Meta Tags on Facebook is straightforward. Go to blogger Dashboard =&gt; Template =&gt; Edit HTML On top of the code, find the &lt;html&gt; tag, it should look similar to this: &lt;html b:version=&#8217;2&#8242; class=&#8217;v2&#8242; expr:dir=&#8217;data:blog.languageDirection&#8217; xmlns=&#8217;http:\/\/www.w3.org\/1999\/xhtml&#8217; xmlns:b=&#8217;http:\/\/www.google.com\/2005\/gml\/b&#8217; xmlns:data=&#8217;http:\/\/www.google.com\/2005\/gml\/data&#8217; xmlns:expr=&#8217;http:\/\/www.google.com\/2005\/gml\/expr&#8217;&gt; Add the Facebook xml namespace by adding the following line inside the tag (Before [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[68,33,69],"tags":[],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-blogger","category-facebook","category-open-graph"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/comments?post=53"}],"version-history":[{"count":1,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/53\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/media?parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/categories?post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/tags?post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}