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 https://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

Advertisements

Sr. Software Engineer

Tagged with: , , ,
Posted in Drupal, Joomla, Magento, PHP, Wordpress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: