Is there a way to detect if the Facebook Javascript SDK loaded successfully?
You should load the Javascript Library Asynchronously and put all your FB related functions inside the window.fbAsyncInit method: <div id=”fb-root”></div> <script> window.fbAsyncInit = function() { FB.init({ appId : ‘YOUR_APP_ID’, // App ID channelUrl : ‘//WWW.YOUR_DOMAIN.COM/channel.html’, // Channel File status : true, // check login status cookie : true, // enable cookies to allow the server … Read more