I set the og tags as I should. The Facebook debugging tool shows the correct tags and generates the correct preview. However, the sharebutton on my site generates a different result. It adds an h2 header title with a title and no summary.
My code is:
<meta property="og:title" content="Page-Title"/>
<meta property="og:url" content="Page-URL"/>
<meta property="og:image" content="Page-Image"/>
<meta property="og:description" content="Page-Description" />
Initialize facebook share button
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v2.5'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
source
share