2011-09-02 64 views
1

發送對話框在iframe頁面選項卡中不起作用。發送對話框在頁面選項卡中不起作用

照例如在「發送對話頁面https://developers.facebook.com/docs/reference/dialogs/send/

<html xmlns:fb="https://www.facebook.com/2008/fbml"> 
    <body> 
    <script src="http://connect.facebook.net/en_US/all.js"></script> 
    <div id="fb-root"></div> 
    <script> 
     // assume we are already logged in 
     FB.init({appId: '123050457758183', xfbml: true, cookie: true}); 

     FB.ui({ 
      method: 'send', 
      name: 'People Argue Just to Win', 
      link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html', 
      }); 
    </script> 
    </body> 
</html> 

但這返回錯誤:

API Error Code: 3 
API Error Description: Unknown method 
Error Message: Unknown method 

但是當改變「喂」對話框一切完美。

+0

如果有人想知道,有一個新的[bug](http://developers.facebook.com/bugs/246637628719849)跟蹤。這對我來說似乎是一個非常嚴重的限制。如果不使用彈出窗口,無法從FB選項卡發送。 – 2011-11-14 18:05:39

回答

4

有一個關於它的提交的bug here。一個解決方案是建議使用display: 'popup'

+0

是的,好像這個bug仍然是實際的,謝謝你的回答。 –

相關問題