Facebook’s open graph can be a powerful tool for brands but the only thing important is they must know on how to use it. If you want to add Open Graph metadata to your WordPress posts, simply paste the following snippet into your theme’s functions.php file.

Once done, now open your header.php and replace the <html> tag with:

Snippet Source/Credit: WP Tutsplus