This is and example to use facebook open graph and you can edit more on facebook developer.Open graph offers many commonly used actions and objects, which you can start using right away, or you can create custom stories specific to your facebook app.

Creating Object Types

Objects are the "nouns" or targets for actions taken by people in your facebook app. They are represented by HTML markup on a particular URL which uniquely defines each object. You can use one of the common objects when creating a story or define your own custom object types. You can refer to facebook developer on https://developers.facebook.com/docs/opengraph/creating-object-types/#properties


 // Add this to open html tag  
 <html expr:..... xmlns:fb='http://ogp.me/ns/fb#'>  
 // Or add this to head tag. I prefer to use both.  
 <head prefix='og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# blog: http://ogp.me/ns/blog#'>  
 //Get your profile id like this https://www.facebook.com/profile.php?id=4  
 <meta content='YOUR_PROFILE_ID' property='fb:admins'/>  
 //Make you fb application on https://developers.facebook.com/apps?ref=ezadblog.my  
 <meta content='YOUR_APP_ID' property='fb:app_id'/>  
 <meta content='blog' property='og:type'/>  
 <meta content='en_US' property='og:locale'/>  
 <meta content='YOUR_BLOG_TITLE' property='og:site_name'/>  
 <meta expr:href='data:blog.url' property='og:url'/>  
 <meta expr:content='data:blog.pageTitle' property='og:title'/>  
 //This will show your post search description  
 <b:if cond='data:blog.metaDescription != &quot;&quot;'>  
 <meta expr:content='data:blog.metaDescription' property='og:description'/>  
 <b:else/>  
 //If dont have search description it will show this.edit this description.  
 <meta content='Ezad Blog is a blog for EzadNet (http://www.ezadnet.my). Information about website,network,security and many more over the internet.' property='og:description'/>  
 </b:if>  

Delete comment start with // when you using on your blog and test your post url on https://developers.facebook.com/tools/debug/.Hope this article help you.Leave a comment if you have a question.
08 Dec 2013

Recent Comments

 
Top