Wednesday 20 February 2013

How To Use Facebook Open Graph?


Add following open graph protocol meta tags in the head section (…) of your web page:

<meta property=”og:title” content=”Enter title of your web page here“/>
<meta property=”og:type” content=”article”/>
<meta property=”og:url” content=”Enter the URL of your web page here“/>
<meta property=”og:image” content=”Enter image URL which represent your object here“/>
<meta property=”fb:admins” content=”Enter your facebook user ID here“/>
<meta property=”og:site_name” content=”Enter the name of your website here“/>
<meta property=”og:description” content=”Enter one or two sentence description of your web page here“/>



Note: og:type means type of the object. Since our object is a piece of content (article, blog post, video, photo etc) i have used ‘article’ as object type. Visit the Facebook Open Graph page to retrieve more details about each META tag and its intended information.

No comments :

Post a Comment