Open Graph Markup
Most message is shared to Facebook as a URL, sol it’s significant that you mark up your web_site with open Graph rag to take control_condition over how your capacity appears on Facebook. For your web_site to be shared correctly by our crawler, your waiter must besides use the gzip and deflate encodings.
Without these outdoors Graph tags, the Facebook Crawler uses home heuristics to make a best think about the title, description, and preview persona for your content. Designate this information explicitly with open Graph chase to ensure the highest timbre posts on Facebook.
Here’s an model of contentedness formatted with open Graph rag for optimum expose on Facebook:
Markup Example
For example, here’s how to mark up an article, news_program narrative or web_log military_post with og:type="article"
and respective extra properties:
The properties include descriptive meta-data about the article that we specifically want to present when person shares the article.
Basic Tags
These are the most basic meta tag that you should use for all subject types:
Tag
Description
og:url
The canonic URL for your page. This should be the unadorned URL, without school_term variables, exploiter identifying parameters, or counters. Likes and Shares for this URL will aggregate at this URL. For example, fluid sphere URLs should point to the background adaptation of the URL as the canonic URL to aggregate Likes and Shares across unlike versions of the page.
og:title
The championship of your article without any stigmatization such as your web_site name.
og:description
A abbreviated description of the content, normally between 2 and 4 sentences. This will displayed below the deed of the position on Facebook.
og:image
The URL of the picture that appears when person shares the contented to Facebook. See below for more info, and check out our best practices guide to learn how to specify a senior_high_school choice preview image.
fb:app_id
In ordering to use Facebook Insights you must add the app ID to your page. Insights lets you view analytics for dealings to your locate from Facebook. Find the app ID in your App Dashboard.
You may besides want to add two extra tag to improve distribution of your message and more engagement:
Tag
Description
og:type
The character of media of your content. This tag impacts how your capacity shows up in Feed. If you don’t specify a type,the nonpayment is website
. Each URL should be a one object, thus multiple og:type
values are not possible. Find the full_moon tilt of aim types in Object Types Reference
og:locale
The venue of the resource. Defaults to en_US
. You can besides use og:locale:alternate
if you have early available speech translations available. Learn about the locales we support in our software_documentation on localization.
The wax number of criterion aim properties is in our Object Properties Reference.