我有这个代码
FB.login(function(response) {
if (response.authResponse) {
self.location.href='javascript:postToWall()';
} else {
window.top.location='https://www.facebook.com/dialog/oauth?client_id=XXXXX&redirect_uri=XXXXX&state=5140df0126eae59fbc72ac733383bda3&canvas=1&fbconnect=0&scope=email+publish_stream';
}
}, {scope: 'email,publish_stream'});
它正在工作,但在弹出窗口中打开,我需要在全窗口中打开它。我能怎么做 ?