{"id":1544,"date":"2017-09-01T14:20:54","date_gmt":"2017-09-01T14:20:54","guid":{"rendered":"http:\/\/reseller-hosting-themes.com\/wordpress\/?p=1544"},"modified":"2017-08-22T14:21:40","modified_gmt":"2017-08-22T14:21:40","slug":"open-graph-tags-wordpress","status":"publish","type":"post","link":"https:\/\/reseller-hosting-themes.com\/wordpress\/open-graph-tags-wordpress\/","title":{"rendered":"Open Graph tags &#8211; what do they do and how to add them to WordPress"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignright wp-image-1563 size-medium\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/05\/open-graph-tags-wordpress-300x225.png\" alt=\"Open Graph Tags WordPress\" width=\"300\" height=\"225\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/05\/open-graph-tags-wordpress-300x225.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/05\/open-graph-tags-wordpress.png 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>Open Graph tags have one simple task \u2013 to give web apps important bits of information about each page on your website. They were first introduced by Facebook in order to allow webmasters to generate richer link previews.<\/p>\n<p>Their reach has since expanded and they are now also used by other popular social networking websites, by chat apps, etc., all of which\u00a0look for Open Graph tags in order to display more information about each page that is shared through them.<\/p>\n<p>Some web apps can automatically extract this information without you having to add any extra code. And to their credit \u2013 at times they do the job quite well.<\/p>\n<p>However, if you want your links to have a consistent look irrespective of the particular platform through which they are shared, Open Graph tags are the way to go.<\/p>\n<h2>How do Open Graph tags work on your site?<\/h2>\n<p>The best way to understand what Open Graph tags are all about is to actually see them in action.<\/p>\n<p>Sharing a URL on Facebook will generate a link preview consisting of a title, a description, and a thumbnail image. If you believe that Facebook somehow self-generates this information, you are wrong. It comes courtesy of the Open Graph meta tags in the\u00a0web page\u2019s source code. Here is the proof \u2013 take a closer look at these bits of code:<\/p>\n<p>Though this is a code extract, you don\u2019t need to be a computer programmer to notice the following properties: title, description, image, and URL.<\/p>\n<p>These meta tags tell Facebook what content to show in a given link preview and are completely customizable.<\/p>\n<h2>Open Graph tags\u00a0you need to use<\/h2>\n<p>There are more than 20 different Open Graph tags, but you don\u2019t have to use all of them. Instead, you can focus on just 4:<\/p>\n<p>\u2022 og:title \u2013 the title of your site as you\u2019d like it to be displayed on Facebook;<\/p>\n<p>\u2022 og:description \u2013 a brief description, which will be displayed below your site\u2019s title;<\/p>\n<p>\u2022 og:image \u2013 the image that will be displayed by default;<\/p>\n<p>\u2022 og:url \u2013 the canonical URL of your site;<\/p>\n<p>To see the <a href=\"https:\/\/developers.facebook.com\/docs\/sharing\/opengraph\/object-properties#standard\" target=\"_blank\" rel=\"noopener noreferrer\">full list of available tags<\/a>, visit the official Facebook Developers portal.<\/p>\n<h2>Will Open Graph tags improve website traffic?<\/h2>\n<p>It goes without saying that if you are able to control the images and the text in your Facebook posts, you\u2019ll be also able to increase their CTR (click-through rate). And the latter is crucial for your posts\u2019 popularity.<\/p>\n<p>It is also worth mentioning that when you use Open Graph tags, you can be sure that your Facebook posts will contain images whenever other users share them.<\/p>\n<p>And image-fitted posts get 2.3 times more engagement than image-free ones. That\u2019s why it is important to choose your images carefully.<\/p>\n<h2>Will Open Graph tags affect SEO?<\/h2>\n<p>Open Graph meta tags are much like the ones search engines look at when deciding which pages of your website to display in their search results. However, as they\u00a0were introduced by Facebook, they have no direct relation to your rankings on Google, Bing, Baidu, Yandex and other search engines.<\/p>\n<p>Thus, your on-page SEO will not be affected by the presence or absence of Open Graph tags.<\/p>\n<h2>How to add Open Graph tags to WordPress<\/h2>\n<p>By now, you should be well aware of the essence and significance of Open Graph tags. Listed below are several plugins, which can help you automatically add Open Graph tags to your website\u2019s homepage and to your separate posts.<\/p>\n<h3>Yoast SEO<\/h3>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1801\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/yoast-seo-1000x359.png\" alt=\"yoast seo\" width=\"600\" height=\"215\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/yoast-seo-1000x359.png 1000w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/yoast-seo-300x108.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/yoast-seo-768x276.png 768w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/yoast-seo.png 1838w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\" target=\"_blank\" rel=\"noopener noreferrer\">Yoast SEO<\/a> is one of the most popular WordPress SEO plugins. It can help you easily add Open Graph tags to your posts.<\/p>\n<p>All you have to do is scroll down to the Yoast SEO box under the WordPress Editor and click on the share icon on the left.<\/p>\n<p>You can specify a title, a description and an image for each given post.<\/p>\n<p>By default, Yoast SEO will use the particular post\u2019s title, featured image and meta description, but you can also specify custom ones.<\/p>\n<h3>All in One SEO Pack<\/h3>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-seo-pack\/\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1798\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/all-in-one-seo-pack-1000x311.png\" alt=\"all in one seo pack\" width=\"600\" height=\"187\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/all-in-one-seo-pack-1000x311.png 1000w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/all-in-one-seo-pack-300x93.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/all-in-one-seo-pack-768x239.png 768w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/all-in-one-seo-pack.png 1884w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-seo-pack\/\" target=\"_blank\" rel=\"noopener noreferrer\">All in One SEO Pack<\/a> is another popular WordPress SEO plugin, which allows you to add Open Graph tags with ease. To see the Open Graph option, simply activate the Social Meta feature from the Feature Manager section.<\/p>\n<p>Once you have done so, you will be able to add custom meta information to your posts, just like with the Yoast SEO plugin.<\/p>\n<h3>The SEO Framework<\/h3>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/autodescription\/\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1799\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/the-seo-framework-1000x324.png\" alt=\"the seo framework\" width=\"600\" height=\"194\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/the-seo-framework-1000x324.png 1000w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/the-seo-framework-300x97.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/the-seo-framework-768x249.png 768w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/the-seo-framework.png 1882w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><a href=\"https:\/\/wordpress.org\/plugins\/autodescription\/\" target=\"_blank\" rel=\"noopener noreferrer\">The SEO Framework<\/a> is yet another all-in-one WordPress SEO plugin.<\/p>\n<p>To add Open Graph tags, go to SEO Settings and look for Custom Home Page Title, Custom Home Page Description, and Social Image Fallback URL. The SEO Framework plugin will automatically resize the image you have chosen.<\/p>\n<h3>WP Facebook Open Graph protocol<\/h3>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/wp-facebook-open-graph-protocol\/\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1800\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/wp-facebook-open-graph-protocol-1000x322.png\" alt=\"wp facebook open graph protocol\" width=\"600\" height=\"193\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/wp-facebook-open-graph-protocol-1000x322.png 1000w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/wp-facebook-open-graph-protocol-300x97.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/wp-facebook-open-graph-protocol-768x248.png 768w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/06\/wp-facebook-open-graph-protocol.png 1886w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a>If you don\u2019t want to use an all-in-one SEO plugin to merely add Open Graph tags, you can check out the\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/wp-facebook-open-graph-protocol\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP Facebook Open Graph protocol<\/a> plugin, whose sole function is to add og:title, og:descritpion and og:image tags to your posts.<\/p>\n<p>It runs in the background and generates the\u00a0tags automatically. They are based on the particular title, meta description and featured image you have specified.<\/p>\n<p>The main advantage of the WP Facebook Open Graph protocol plugin is that it\u2019s much more lightweight and less resource-demanding than the above-presented all-in-one SEO plugins.<\/p>\n<h2>Open Graph tags best practices<\/h2>\n<p>Facebook recommends that you use images whose size is at least 1200 x 630 pixels. This will ensure that they will be displayed properly on high-resolution displays. The minimum image size should be 600 x 315 pixels. Otherwise, the given image would still be displayed in the respective post, but its size would be much smaller. Images smaller than 200 x 200 pixels are not even \u2018recognized\u2019 by Facebook.<\/p>\n<p>To avoid quality-degrading image compression, you should also avoid red as much as possible.<\/p>\n<p>Images cannot be larger than 8 MB.<\/p>\n<p>The og:title tag should not contain brand or domain mentions. The og:url tag should be free of extraneous query string parameters.<\/p>\n<p>Visit the official Facebook Developers portal to see <a href=\"https:\/\/developers.facebook.com\/docs\/sharing\/best-practices#tags\" target=\"_blank\" rel=\"noopener noreferrer\">all best practice<\/a> recommendations.<\/p>\n<p>Keep in mind that these practices are recommended by Facebook. Elsewhere, other specifications may apply. This is why, we recommend that once you have added Open Graph tags to your site, you test what your posts look like across different social media platforms.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn all about Open Graph tags &#8211; what are they, how to use them and how to quickly integrate them in your WordPress site.<\/p>\n","protected":false},"author":1,"featured_media":1563,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts\/1544"}],"collection":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1544"}],"version-history":[{"count":17,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts\/1544\/revisions"}],"predecessor-version":[{"id":1612,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts\/1544\/revisions\/1612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/media\/1563"}],"wp:attachment":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}