FB is not defined in Facebook Login - Stack Overflow

The function assigned to window.fbAsyncInit is run as soon as the SDK is loaded. Any code that you want to run after the SDK is loaded should ...

Lee mas