2011-05-27 43 views
0

我無法設法關閉在應用程序中打開的對話框。這裏是我的代碼:Facebook用戶界面fbml.dialog

FB.ui({ 
method:'fbml.dialog', 
'display': 'dialog', 
fbml:'<fb:dialog-button type="button" value="No" close_dialog="true" />', 
size: {width:640,height:480}, width:640, height:480}); 
}); 

我可以打開彈出菜單,但不顯示任何按鈕。問題在哪裏?

回答

0

假設萬事俱備與fb庫的初始化繼承人代碼爲我工作。

FB.UIServer.Methods["fbml.dialog"].size = {width:350, height:50}; 
      FB.ui({ 
      method:'fbml.dialog', 
      display: 'dialog', 
      fbml: (
        '<div class="pop_content" id="pop_content">'+ 
         '<h2 class="dialog_title"><span>HEADER TITLE</span></h2>'+ 
         '<div class="dialog_content">'+ 
          '<div class="dialog_body">CONTENT IN THE ALERT</div>'+ 
         '</div>'+ 
        '</div>' 

        ), 
      width: '350', 
      height: '50' 
      }); 

問候。