好,我知道了!实际上,您必须将旧 API 与新 API 混合使用(想知道这将工作多长时间;))
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({ appId: 'yourPageIdHere', status: true, cookie: true, xfbml: true});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol + '//connect.facebook.net/cs_CZ/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
<fb:fan profile_id="yourPageIdHere" stream="1" connections="0" logobar="0" width="280" css="your.cssfilehere?1"></fb:fan>