Open Graph Protocol – Share web-page on Facebook
The Open Graph protocol is a set of meta tags. It makes a web-page feature rich on facebook giving it the same look & features as other objects on facebook. In this article you’ll learn how to share a webpage on facebook.
Use Open Graph Protocol to
OGP is added through meta tags in the <head> section of the page as shown below :
<meta property=”og:title” content=”Title of the page” />
<meta property=”og:image” content=”http://xyz.com/img.jpg” />
<meta property=”og:url” content=”http://xyz.com/” />
<meta property=”og:type” content=”video.movie” />
Note : For more detailed Info go to http://ogp.me
More options for Developers
Besides open graph protocol, there are several tools for same purpose, a few of them are listed below :
- Schema.org for Google + : Schema.org provides rich snippets to share on Google plus platform.
- Twitter cards : Twitter cards serves the same purpose on Twitter.