{"id":1241,"date":"2020-04-16T15:31:22","date_gmt":"2020-04-16T15:31:22","guid":{"rendered":"https:\/\/www.rankmovers.com\/?p=1241"},"modified":"2024-02-23T09:26:57","modified_gmt":"2024-02-23T09:26:57","slug":"open-graph-markup","status":"publish","type":"post","link":"https:\/\/www.rankmovers.com\/open-graph-markup\/","title":{"rendered":"What is Open Graph Markup?"},"content":{"rendered":"
Open Graph markup or tags are code that is used to control how URLs are presented on social media. They are located in the <head> section of your webpage and are part of Facebook’s Open Graph Protocol.<\/p>\n
Here is an example of the code that is used for the open graph meta tags:<\/p>\n
<\/p>\n
Here is an example of what it will look like when shared on social media:<\/p>\n
<\/p>\n
There are 17 open graph tags listed by Facebook. However, there are the basic ones that you need for your page. In this section, we will be looking at those basic ones.<\/p>\n
Here are the standard open graph markups:<\/p>\n
og:url<\/strong> – This is the page URL used for the page, which will be similar to the canonical URL.<\/p>\n Og:title<\/strong> – This is the title of the page, and in SEO’s case would be the H1 of your page. The title has to be short following a guidance of 40 characters for mobile and 60 characters for desktop.<\/p>\n Og:description<\/strong> \u2013 this a brief explanation of the content that should complement the title. You can use your meta description for this section as long as it describes what the content is about clearly. Facebook recommends using two to four sentences.<\/p>\n Og:image<\/strong> \u2013 this is the image that will appear in the social snippet. It is the most important as it occupies most of the social snippets. The image dimensions must be at least 1200×630 pixels and must not exceed 8MB.<\/p>\n Og:locale<\/strong> \u2013 this defines the language that is used for the content. If there is no language that is allocated for the content, Facebook will assume that the page uses American English. In our case, this would be already be allocated in our meta property.<\/p>\n Step 1: go to the Yoast box in the backend<\/strong><\/p>\n <\/p>\n Step 2: Add title, description, and image for that specific page<\/strong><\/p>\n It is suggested that you don’t fill out the URL manually because Yoast does it for you. Yoast will also add image dimensions as well. Also, if you don’t set an image tag, the featured image will be used as default.<\/p>\n Step 3: set the image tag sitewide<\/strong><\/p>\n This has to set up in Yoast settings. In our Yoast, you will click on the SEO button, choose the social options, and enable the toggle.<\/p>\n To check if your tags are working properly, you can use the following:<\/p>\n They all work the same way by checking your page’s open graph markup tags and show how it will look when shared. When you do the test, it will also help with preventing issues where there are tags that aren’t pulled correctly. The important thing is that the snippet looks appealing, so even if you miss the less relevant tags like fb:app_id, it’s not a problem.<\/p>\n Here is an example of how Facebook Sharing Debugger looks:<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Open Graph markup or tags are code that is used to control how URLs are presented on social media. They are located in the <head> section of your webpage and are part of Facebook’s Open Graph Protocol. Here is an example of the code that is used for the open graph meta tags: Here is […]<\/p>\n","protected":false},"author":15,"featured_media":1248,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[],"yoast_head":"\nHow to Set Up Markup Tags on WordPress<\/h2>\n
How to Test Open Graph Tags<\/h2>\n
\n