Javascript showAuthenticationDialog未关闭windows上的弹出窗口
我们正在编写一个spotify应用程序,它使用showAuthenticationDialog对话框邀请用户加入facebook好友 邀请有效,但弹出窗口不会在Windows上关闭(在Mac上是这样的!) 代码如下所示:Javascript showAuthenticationDialog未关闭windows上的弹出窗口,javascript,facebook,spotify,Javascript,Facebook,Spotify,我们正在编写一个spotify应用程序,它使用showAuthenticationDialog对话框邀请用户加入facebook好友 邀请有效,但弹出窗口不会在Windows上关闭(在Mac上是这样的!) 代码如下所示: var redir = "https://server/services/callback/facebook/apprequest/?source=spotify&user_id=" + uID; var data = "user_id=" + ses
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中)是否会触发正确的回调?不,不会。愚蠢的最小评论限制。