{"id":42316,"date":"2016-11-24T12:23:33","date_gmt":"2016-11-24T06:53:33","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=42316"},"modified":"2016-11-24T12:44:20","modified_gmt":"2016-11-24T07:14:20","slug":"how-to-use-open-graph-meta-tags-for-facebook-sharing","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/how-to-use-open-graph-meta-tags-for-facebook-sharing\/","title":{"rendered":"How to Use Open Graph Meta Tags for Facebook Sharing"},"content":{"rendered":"<p><b>Open Graph<\/b><span style=\"font-weight: 400\"> is a technology introduced by Facebook in <\/span><b>2010<\/b><span style=\"font-weight: 400\">\u00a0that enables integration between Facebook, user data and website. Facebook \u2018scrapes\u2019 the URL you are sharing and gets the information it displays from meta tags within the &lt;head&gt; section of the page.<\/span><\/p>\n<p><span style=\"font-weight: 400\">With an amalgamation of Open Graph Meta tags in your page\u2019s content, you can determine what parts of your page you want to show when someone shares your page. <\/span><b>The tags will have an effect on conversions and click through rates massively.<\/b><\/p>\n<p><span style=\"text-decoration: underline\"><b>MOST IMPORTANT META TAGS:<\/b><\/span><\/p>\n<p><b style=\"font-size: 1rem\">1. og:title <\/b><span style=\"font-weight: 400\">The title of the content you are sharing.<\/span><\/p>\n<p><b>Example<\/b><span style=\"font-weight: 400\">: \u00a0<\/span><b><i>&lt;meta property=\u201dog:title\u201d content=\u201dProduct Engineering | Digital Transformation | TO THE NEW \u201d \/&gt;<\/i><\/b><\/p>\n<p><strong>NOTE: <\/strong>There is no limit on the number of characters, but it\u2019s best to remain between 60 and 90. Also, if your title is longer than a hundred characters then Facebook will truncate it to 88 <strong>i.e only 88 characters are visible in open graph and on click a person can see the whole title<\/strong>.<strong>\u00a0<\/strong><\/p>\n<p><b>2. og:description<\/b>\u00a0It is few<span style=\"font-weight: 400\">\u00a0lines of description of the content that usually\u00a0appears below the link title on Facebook.<\/span><\/p>\n<p><b>Example: <\/b><b><i>&lt;meta property=\u201dog:description\u201d content=\u201dA digital technology company that drives digital transformation and builds disruptive products by leveraging UX, cutting edge technologies and cloud \u201d \/&gt;<\/i><\/b><\/p>\n<p><b>NOTE: \u00a0<\/b>There is n<span style=\"font-weight: 400\">o restriction on the number of characters, however, it\u2019s best to use around 200 characters.<\/span><\/p>\n<p><b>3. og:image <\/b>\u00a0It is t<span style=\"font-weight: 400\">he image that represents your content within the graph when it gets shared.<\/span><\/p>\n<p><b>Example: \u00a0<\/b><span style=\"font-weight: 400\">\u00a0<\/span><b><i>&lt;meta name=\u201dog:image\u201d content=\u201dhttp:\/\/tothenew.com \/image-name.jpg\u201d \/&gt;<\/i><\/b><\/p>\n<p><b>Note: <\/b><\/p>\n<ol>\n<li>og:image property is useful if your page has several images and you want a specific image with your content.<b> <\/b><\/li>\n<li><span style=\"font-weight: 400\">The image should not be smaller than 300px *200px and also the recommended resolution for an og:image is 1200px * 627px.<\/span><\/li>\n<li>If og:image is not set then\u00a0Facebook will show anything stupid like unwanted content or ad banner scraped from the page, or nothing. We positively don\u2019t need that!<\/li>\n<li>You can also change image attributes by adding below meta tagsog:image:typeog:image:widthog:image:height<\/li>\n<li><b> <\/b><span style=\"font-weight: 400\">The image which is employed \u00a0in og:image can be totally different what you\u2019ve got on your page.<\/span><\/li>\n<\/ol>\n<p><b>4. og:type <\/b>This is t<span style=\"font-weight: 400\">he type of object or page which you are sharing such as video, blog post, website etc. Also, depending on the type you specify, you may have to add more properties.<\/span><\/p>\n<p><b>Example:<\/b><span style=\"font-weight: 400\"> \u00a0<\/span><b><i>&lt;meta property=\u201dog:type\u201d content=\u201dwebsite\u201d \/&gt;<\/i><\/b><\/p>\n<p><b>Note: <\/b><span style=\"font-weight: 400\">This tag is very important when your page has a &#8216;Like&#8217; button and represents a true life object (like a book ). If you don\u2019t outline\u00a0any type, Facebook will browse it as \u201cwebsite\u201d by default.<\/span><\/p>\n<p><strong>For Example\u00a0<\/strong><span style=\"font-weight: 400\">If you define <\/span><b><i>&lt;meta property=\u201dog:type\u201d content=\u201dbusiness\u201d \/&gt;<\/i><\/b><span style=\"font-weight: 400\"> then alternate properties like business type , name etc. are also required.<\/span><\/p>\n<p><b>5. og:url <\/b><span style=\"font-weight: 400\">\u00a0The canonical URL of the content or page you are sharing.<\/span><\/p>\n<p><b>Example: \u00a0<\/b><b><i>&lt;meta property=\u201dog:url\u201d content=\u201dhttp:\/\/www.yourdomain.com\u201d \/&gt;<\/i><\/b><\/p>\n<p><b>Note:\u00a0<\/b><span style=\"font-weight: 400\">This tag is useful when you have more than one URL for the same content.<\/span><\/p>\n<p><b>6. og:locale <\/b>This defines<span style=\"font-weight: 400\">\u00a0the language of the content. It is in the format <\/span><b>language_TERRITORY.<\/b><\/p>\n<p><b>Example: <\/b><b><i>&lt;meta property=\u201dog:url\u201d content=\u201den_US\u201d \/&gt;<\/i><\/b><\/p>\n<p><b>Note: <\/b><span style=\"font-weight: 400\">By default it is <\/span><b>en_US <\/b><span style=\"font-weight: 400\">and it is not needed unless the language is not English or it is outside the United States.<\/span><\/p>\n<p><span style=\"text-decoration: underline\"><b>ADDITIONAL META TAGS:<\/b><\/span><\/p>\n<ol>\n<li><b> \u00a0og:site_name <\/b><span style=\"font-weight: 400\">If the content is an element of a large website, then the name should be displayed for the website.<\/span><\/li>\n<\/ol>\n<p><b>Example: \u00a0<\/b><b><i>&lt;meta property=\u201dog:site_name\u201d content=\u201d<\/i><\/b><b><i> allmovie\u201d<\/i><\/b><b><i> \/&gt;<\/i><\/b><\/p>\n<ol start=\"2\">\n<li><b> \u00a0og:video <\/b>It is\u00a0<span style=\"font-weight: 400\">the URL of a video file that enhances the content.<\/span><\/li>\n<\/ol>\n<p><b>Example: <\/b><b><i>&lt;meta property=\u201dog:video\u201d content=\u201d<\/i><\/b><b><i>https:\/\/www.youtube.com\/watch?v=3UMTtLlpaus\u201d<\/i><\/b><b><i> \/&gt;<\/i><\/b><\/p>\n<ol start=\"3\">\n<li><b> \u00a0og:audio <\/b>It is the\u00a0<span style=\"font-weight: 400\">URL of an audio file to accompany with your content.<\/span><\/li>\n<\/ol>\n<p><b>Example:\u00a0<\/b><b><i>&lt;meta property=\u201dog:audio\u201d content=\u201d<\/i><\/b><b><i> http:\/\/your_audio.mp3\u201d<\/i><\/b><b><i> \/&gt;<\/i><\/b><\/p>\n<ol start=\"4\">\n<li><b> \u00a0og:locale:alternate<\/b> It is a<span style=\"font-weight: 400\">n array of alternative locale where this page or content is available.<\/span><\/li>\n<\/ol>\n<p><b>Example: <\/b><b><i>&lt;meta property=\u201dog:audio\u201d content=\u201d<\/i><\/b><b><i> http:\/\/your_audio.mp3\u201d<\/i><\/b><b><i> <\/i><\/b><\/p>\n<p><span style=\"text-decoration: underline\"><strong>SAMPLE SCENARIO GIVEN BELOW :<\/strong><\/span><\/p>\n<p><strong>og:title \u00a0<\/strong><i>&lt;meta property=\u201dog:title\u201d content=\u201dProduct Engineering | Digital Transformation | TO THE NEW \u201d \/&gt;<\/i><\/p>\n<p><strong>og:description<\/strong> <i>&lt;meta property=\u201dog:description\u201d content=\u201dA digital technology company that drives digital transformation and builds disruptive products by leveraging UX,cutting edge technologies and cloud \u201d \/&gt;<\/i><\/p>\n<p><strong>og:image<\/strong> \u00a0<i>Not set<\/i><\/p>\n<p><strong>og:type<\/strong> \u00a0<i>Not set<\/i><\/p>\n<p><strong>og:locale<\/strong> \u00a0<i>&lt;meta property=\u201dog:url\u201d content=\u201den_US\u201d \/&gt;<\/i><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-42526\" src=\"\/blog\/wp-ttn-blog\/uploads\/2016\/11\/Screenshot-from-2016-11-21-1115271.png\" alt=\"Screenshot from 2016-11-21 11:15:27\" width=\"526\" height=\"526\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2016\/11\/Screenshot-from-2016-11-21-1115271.png 526w, \/blog\/wp-ttn-blog\/uploads\/2016\/11\/Screenshot-from-2016-11-21-1115271-150x150.png 150w, \/blog\/wp-ttn-blog\/uploads\/2016\/11\/Screenshot-from-2016-11-21-1115271-300x300.png 300w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/p>\n<p>As og:image is not set for the <a href=\"http:\/\/www.tothenew.com\">http:\/\/www.tothenew.com<\/a>\u00a0 page that&#8217;s why it contains arrow (Refer highlighted section in above image) in the open graph with multiple images scraped from the page.<\/p>\n<p><b><span style=\"text-decoration: underline\">FACEBOOK DEBUGGER:<\/span><\/b><\/p>\n<p><span style=\"font-weight: 400\">An Open graph debugger named <\/span><b style=\"font-size: 1rem\">Facebook Debugger <\/b><a style=\"font-size: 1rem\" href=\"https:\/\/developers.facebook.com\/tools\/debug\/\"><b>https:\/\/developers.facebook.com\/tools\/debug\/<\/b><\/a><b style=\"font-size: 1rem\"> \u00a0<\/b><span style=\"font-weight: 400\">offered by Facebook enables developers to check their page and verify how it will look once shared on Facebook. By using this tool you can verify if your Open Graph is correctly detected or not and it also gives you suggestions and warning to repair what went wrong.<\/span><\/p>\n<p>So from next time, to share your content or your website page on Facebook, add <strong>open graph meta tags\u00a0<\/strong>in your page&#8217;s HTML.<\/p>\n<p>I hope you find this blog useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open Graph is a technology introduced by Facebook in 2010\u00a0that enables integration between Facebook, user data and website. Facebook \u2018scrapes\u2019 the URL you are sharing and gets the information it displays from meta tags within the &lt;head&gt; section of the page. With an amalgamation of Open Graph Meta tags in your page\u2019s content, you can [&hellip;]<\/p>\n","protected":false},"author":1023,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":5},"categories":[3429,1],"tags":[258,4229,703,4196,4197,4198],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/42316"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1023"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=42316"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/42316\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=42316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=42316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=42316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}