fb:login_button failed to resize in 45s

后端 未结 5 2180
小鲜肉
小鲜肉 2020-12-11 05:35

I attempted to implement an asynchronous loading Facebook log in button, but the button disappeared after 45 seconds.

This is the message I got in t

相关标签:
5条回答
  • 2020-12-11 06:20

    Matt Bower from Facebook developer's forum gave this temporary solution:

    #fb_login_button { 
        width: 80px; 
    }
    #fb_login_button span, 
    #fb_login_button iframe {.
        width: 80px !important;
        height: 25px !important;
    }
    

    Facebook Dev's are working to fix this error.

    just so I'm not taking credit for someone else's answer the original answer can be found here: Facebook login (connect) button rendering in chrome fails

    0 讨论(0)
  • 2020-12-11 06:22

    Also double check permissions that you are requesting with approved permissions. The example below doesn't work and generate the fb:loginbutton not showing error.

    Facebook approved items

    <fb:login-button scope="public_profile,email,location" onlogin="checkLoginState();">
    </fb:login-button>
    

    Removing the location requirement will fix this example.

    0 讨论(0)
  • 2020-12-11 06:23

    I had this warning appear in my console:

    fb:post failed to resize in 45s

    And I was able to fix it by renaming a div class from "fb-post" to "fbPost". Try looking for an HTML element with an ID or class name of "fb-login" in your source.

    I hope this helps.

    0 讨论(0)
  • 2020-12-11 06:34

    Also, watch out for the avast or other anti-tracking add in blocking access to facebook.

    0 讨论(0)
  • 2020-12-11 06:34

    I have the same problem. I was getting fb:post failed to resize in 45s.

    Because I did not provide my Facebook app website URL. So go to your Facebook app settings and type your URL like this:

    enter image description here

    I used wampserver for hosting. You can put your own website URL.

    0 讨论(0)
提交回复
热议问题