2014-03-07 21 views

回答

3

你可以看到你的問題在這裏的原因:https://developers.facebook.com/blog/post/637/

所以在JavaScript的Facebook的初始化您必須添加hideFlashCallback

FB.init({ 
    appId:appId, 
    status:true, 
    cookie:true, 
    oauth:true, 
    frictionlessRequests: true, 
    hideFlashCallback : displayFlash 
}); 

displayFlash功能,你可以做你想做

function displayFlash(a) 
{ 
    if(a.state == 'opened') 
    { 
     // do what you want when a chat or notification is open 
    } 
    else 
    { 
     // do what you want when a chat or notification is closed 
    } 
} 
+0

但這個過程只顯示圖像。我怎樣才能同時或同時玩我的flashgame和聊天通知。 plzzz幫我解決這個問題.... @binou兄弟。 –

+0

如果你沒有隱藏你的Flash遊戲div,也不要在上面放置圖片,Flash遊戲仍然會在我想的地方。 –

+0

但用戶不能玩那個遊戲。甚至不能看到桌子。 @Binou –

0

我一直前一陣子有同樣的問題。但有一個你可以使用的技巧。如果您將以下代碼設置爲您的對象元素,您會看到問題將得到解決。

#myObject {  
    visibility: visible !important; 
} 
相關問題