Quote:
Originally Posted by VIPStephan
As far as I remember you need a few OpenGraph meta tags, and use their API in general rather than the simple iframe widget.
|
Hm.. i am confused... i added this meta to index header
<meta property="og:image" content="http://domain/images/fb_avatar.png"/>
<meta property="og:title" content="<?php echo $_SERVER['REQUEST_URI'];?>"/>
<meta property="og:url" content="<?php echo "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];?>"/>
<meta property="og:site_name" content="My nick"/>
And in file where i want to display it
<div id="fb-root"></div>
<script>(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_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div style='float: left;'class="fb-like" data-href="<?php echo "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];?>" data-send="false" data-width="450" data-show-faces="true"></div>
But still not working

it still dont display the meta image from your link