The xfmbl version does work, there ist just that issue with the sdk twice in source code, what within other issues causes that you get two likes each time one clicks the like button.
I have that in my layout -> Custom HTML at top of every page:
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'myappid',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
Changed through advanced theme the function doctype () using:
$this->output('<!DOCTYPE HTML><html xmlns="
http://www.w3.org/TR/html4/loose.dtd" xmlns:fb="
https://www.facebook.com/2008/fbml">');
Then I have set in advanced theme in the function head_metas() :
$this->output('<meta property="og:url" content=""/>');
$this->output('<meta property="og:type" content="website"/>');
$this->output('<meta property="og:description" content=""/>');
$this->output('<meta property="og:title" content=""/>');
$this->output('<meta property="fb:app_id" content=""/>');
$this->output('<meta property="fb:admins" content=""/>');
$this->output('<meta property="og:image" content=""/>');
And finally implemented the button as follows:
<div class="like">
<fb:like href="" send="false" layout="button_count" width="50" show_faces="false" action="like" font=""></fb:like>
</div>
Thats all. That way the button takes the image You specified in the og parameters and likes the actual url. If You want it to like another url You can set it in the href parameter.
But, there still remains the problem with the sdk loaded twice, when one is logged in through facebook as the fbplugin loads the sdk as well if a fb cookie exists or so...
EDIT: You can see effects on www.algarve-portugal.de
Check as well the source code when logged in through fb abd when not, so You see the two times loaded sdk.