登录/身份验证被卡住,window.fbAsyncInit / FB.init似乎没有运行

时间:2013-03-07 20:24:50

标签: authentication facebook-authentication

自从我最近几天尝试登录我的Facebook应用程序(Lovedot)以来,我无法通过Facebook身份验证。好吧,有时身份验证工作有时我需要刷新几次,有时甚至刷新也无济于事。

当我尝试连接到TopEleven游戏时,我注意到同样的问题。

我使用的代码是:

    window.fbAsyncInit = function () {

        FB.Canvas.setSize({ width: 960, height: 2000 });

        FB.init({ appId: 'MYAPPID', channelUrl: '//fb.lovedot.com/channel.html', status: true, cookie: true, xfbml: true, oauth: true });

        FB.Event.subscribe('auth.login', function (response) {
            if (response.authResponse) {
                window.location = 'https://fb.lovedot.com/outFacebookLanding.aspx?';
            }
        });

        FB.Event.subscribe('auth.logout', function (response) {
        });

所以基本上这是我在Facebook上找到的复制粘贴。 当我检查HTTP Watch跟踪时,我看到:

这开始发生了。在过去3-4天。

有什么想法吗?

0 个答案:

没有答案
相关问题