A goal for many of the sites we build is for them to be shared on Facebook. The least we can do is make sure they look good when it happens.
The first thing you’ll want to do is run your site through the Facebook Debugger.
I’m currently setting this up for Invoice Ninja. You can see below what our site looked like before setting the meta tags. In the “Open Graph Warnings That Should Be Fixed” section there are a number of properties which are inferred.
To set the metadata (and resolved the warnings) you just need to add the following meta tags to the website, filling in your own values for the content fields.
<meta property="og:url" content=""></meta> <meta property="og:title" content=""></meta> <meta property="og:image" content=""></meta> <meta property="og:description" content=""></meta>
It’s worth noting that after your site gets 50 likes the title becomes fixed.
For a listing of all available tags and options check out the Open Graph documentation at http://ogp.me/.