简体   繁体   中英

Facebook Login Button Not Clickable

I am tinkering with the Facebook Login button and while it was easy to put that button on the page, when I click it, it does nothing. Has anyone had that experience?

I had this code:

<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=myRealId&amp;xfbml=1">
</script><fb:login-button show-faces="false" width="200" max-rows="1"></fb:login-button>

Did I need to do something extra?

You can see the button being rendered here: http://www.comehike.com

But when you click it, it does nothing. :(

The JavaScript Console shows me the following message:

FB.login() called before calling FB.init().

So you should probably call FB.init() after the button has been loaded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM