How To Post a Link on Facebook With Large Image Thumbnail | AUTO POST RSS FEED | RSS | PostRSS.com
Posted: 2015-10-05

Today I will show you how to fetch facebook Open Graph(OG) meta tags with php script. Open Graph meta tags are used in html page of website to generate previews of content.when your page is shared on facebook it will capture the og meta tags and generate the snippet.Meta tags are added inside the head tag.

Meta Keywords & their representation as follows,

og:title – The title of your article, excluding any branding.
og:site_name – The name of your website.
og:url – The canonical URL of the page.
og:description – A detailed description of the piece of content

 

As an example, the following is the Open Graph protocol :

<html prefix="og: http://ogp.me/ns#">
<head>

<meta property="og:title" content="Post title" />
<meta property="og:type" content="News Site" />
<meta property="og:url" content="http://postrss.com" />
<meta property="og:image" content="http://postrss.com/wp-content/uploads/2014/01/mainslide1.jpg" />
...
</head>
...
</html>
Menu
x
[st_tag_cloud]