我一直在 facebook 中嵌入我的简单 flash 文件,但我没有任何运气......当我在其中回显文本时,它显示......但 flash 文件本身没有......这就是我的到目前为止已经完成:
function handleLoginStatus(response) {
if (response.session) { //Show the SWF
//A 'name' attribute with the same value as the 'id' is REQUIRED for Chrome/Mozilla browsers
swfobject.embedSWF("textfla.swf", "newerFlash", "650", "700", "9.0", null, null, null, {name:"newerFlash"});
} else { //ask the user to login
var params = window.location.toString().slice(window.location.toString().indexOf('?'));
top.location = 'https://graph.facebook.com/oauth/authorize?client_id='+APP_ID+'&scope='+PERMS+'&redirect_uri='+REDIRECT_URI+params;
}