显示身份验证对话框未在Windows上关闭弹出窗口

时间:2012-08-31 07:39:56

标签: javascript facebook spotify

我们正在编写一个spotify应用程序,它使用showAuthenticationDialog-Dialog来邀请用户的facebook朋友。

邀请工作,但Popup-Windows不会在Windows上关闭(在Mac上它会关闭!)。

守则看起来像这样:

    var redir = "https://server/services/callback/facebook/apprequest/?source=spotify&user_id=" + uID;

    var data = "user_id=" + session.otheruser.id;
    var url = "http://www.facebook.com/dialog/apprequests?app_id=" + FB_APP_ID + "&message=" + encodeURIComponent( msg ) + "&redirect_uri=" + encodeURIComponent( redir ) + "&display=popup&data=" + encodeURIComponent( data ); 

    auth.showAuthenticationDialog(url, 'http://moosify.com', {
        onSuccess : function(response) {
            console.log("Success! Here's the response URL: " + response);
        },

        onFailure : function(error) {
            console.log("Authentication failed with error: " + error);
        },

        onComplete : function() { }
    });

服务器实际上是我们的服务器URL。 (在manifest.json中)

0 个答案:

没有答案