【问题标题】:Facebook Authentication an error has occurred, try again laterFacebook 身份验证发生错误,请稍后重试
【发布时间】:2012-02-07 07:48:20
【问题描述】:

我的页面顶部有这个,但不断收到错误消息。请稍后再试。我的应用程序位于http://reviewsie.com。我的appId是正确的,已经复制粘贴了3次了。

  <div id="fb-root"></div>
<fb:login-button></fb:login-button>

<script>
    window.fbAsyncInit = function()
{
        FB.init({
            appId      : '215682891854809',
            status     : true, 
            cookie     : true,
            xfbml      : true,
            oauth      : true
        });

        FB.Event.subscribe('auth.login', function(response)
    {
            window.location.reload();
        });
    };

  (function(d)
{
        var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        d.getElementsByTagName('head')[0].appendChild(js);
    }(document));
</script>

【问题讨论】:

    标签: javascript facebook facebook-authentication facebook-login


    【解决方案1】:

    您是否在 HTML 声明中添加了 fb 命名空间(因为您使用的是&lt;fb:login-button /&gt;

    &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"&gt;

    (我怀疑这是否能解决这个问题,但值得一试。)

    【讨论】:

      猜你喜欢
      • 2011-11-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多