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

How to workaround ‘FB is not defined’?

I think you should solve the main issue instead, which solution is provided by Facebook (Loading the SDK Asynchronously): You should insert it directly after the opening tag on each page you want to load it: <script> window.fbAsyncInit = function() { FB.init({ appId : ‘your-app-id’, xfbml : true, version : ‘v2.1’ }); }; (function(d, s, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)