Ich möchte nicht xfbml verwenden. Ich muss iframe wie Taste wie unten verwenden. Aber das feuert nicht edge.create
.Iframe Like Schaltfläche nicht feuern edge.create
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
// initalize your Facebook App
FB.init({
appId : '113869198637480',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// subscribe to the event
FB.Event.subscribe('edge.create', function(response) {
alert('you liked this');
});
FB.Event.subscribe('edge.remove', function(response) {
alert('you unliked this');
});
</script>
<iframe id="test" src="http://www.facebook.com/plugins/like.php?
href=http://google.com/&
layout=button_count&
show_faces=false&
width=50&
action=like&
colorscheme=light&
height=21"
scrolling="no" frameborder="0"
style="border:none; overflow:hidden; width:50px;
height:21px;"
allowTransparency="true">
Nicht möglich ist die Verwendung der iframe-Version. – CBroe
irgendwelche Arbeiten um? –
ja, verwende nicht die iframe-Version;) – luschn