How to specify Facebook og image width or height image dimentions

This article was written by in June 10, 2015, & may not be posted on other sites!
Original source url for this article: How to specify Facebook og image width or height image dimentions

How to specify Facebook og image width or height?
How to add an og:image, or open graph image and specify image dimentions og:image width and og:image height. This is how to specify Facebook og image dimentions.

How to specify Facebook og image width or height image dimentions

 

How to specify Facebook og image width or height image dimentions

Basic og:properties might look something like this placed inside the <head> of your html document:
<head>
<meta property="og:title" content="My website">
<meta property="og:type" content="website">
<meta property="og:image" content="http://my-website.com/img.jpg">
<meta property="og:image:type" content="image/jpg">
<meta property="og:description" content="My website is displaying all kinds of cool stuff">
</head>

To add og:image width or height dimentions, simply add the following meta tags:
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">

More information on og:properties in this article

 

Spread the word

Facebooktwittergoogle_pluslinkedinmail

Leave a Reply

Your email address will not be published. Required fields are marked *