How add thumb image in custom Facebook share window? Part 2

Hello Friends!
Facebook has done some changes in his API so that’s why we are unable to define the “Share Image” in facebook share window in a way that was given on my last post http://raghunathgurjar.wordpress.com/2013/08/21/how-add-thumb-image-in-custom-facebook-share-link-window/ but don’t worry i am here only for you :)
Using “OG Meta Tags” we can define facebook share window content, for more details about “OG Meta Tags” you can visit facebook official page https://developers.facebook.com/docs/plugins/checklist/
you have need to add the og meta tags in head section (between <head></head> tags) in given format :
<meta property="og:title" content="Your Title">

<meta property="og:image" content="Your image path">
<meta property="og:description" content="Your description">
After add the OG meta tag , you have need to add your share url (url that you want share) like this https://www.facebook.com/sharer/sharer.php?u=your-site-url
For Example :Share My Blog
That’s All :)
Enjoy Code! | Raghunath Blog

Leave a Reply

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