0
我的應用程序在用戶提交表單時打開共享對話框。在提交後刷新頁面時,會在文檔就緒(jQuery)上調用該對話框。共享對話框打開然後關閉
對話框打開,但幾秒鐘後關閉。這幾乎使得對話無用。如果您在關閉之前嘗試點擊「分享」,那麼它確實有效,但顯然大多數用戶不會嘗試競爭它。
該應用程序可以在這裏找到:https://apps.facebook.com/topmoviesseen/
我注意到,它可以tempremental,與奇數時間看到它很好地工作。其他時候,對話框消失僅在4或5秒後重新出現。我會冒險猜測,有某種JS影響z-index或框的可見性,但我找不到任何東西。
任何幫助非常感謝。
代碼用來調用對話框:
$(document).ready(function(){
// calling the API ...
var obj = {
method: 'feed',
display: 'iframe',
access_token: 'example',
name: 'Top 100 Movies Seen',
link: 'https://apps.facebook.com/topmoviesseen/',
picture: 'https://mgnewmedia.com/topmovies/assets/images/for_stream.png',
description: 'I have seen 62 of the top 100 movies of all time. How many have you seen?',
caption: 'Done any better?',
message: '62 out of 100 isn\'t bad.'
};
FB.ui(obj, callback);
});
將你的FB.ui調用添加到'window.fbAsyncInit = function(){FB.ui(...)};' – Rufinus 2012-04-17 13:28:16
工程。如果你能做出答案,我會將其標記爲這樣 – Mike 2012-04-22 16:01:57