title: Recent changes to FB.init and FB.login in the facebook API?
body: <p>I have a script I use to import pictures from a facebook album. It was working yesterday but today it doesn’t work anymore. The popup with the login permission doesn’t open anymore. And the script don’t make the Facebook login remaining in FB.init.</p>
  
  <pre><code>&lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  </code></pre>
  
  
  
  <p></p>
  
  <p></p>
  
  <pre><code>var loggedIn = false;
  
  
  
  /*Logs the user into Facebook*/
  
  function loginFacebook() {
  
      //initializes the facebook API
  
      FB.init({appId : "xxxxxxx", status : true,cookie : true,xbfml : true});
  
  
  
      document.getElementById("status").innerHTML = "In attesa del permesso Facebook";
  
      //opens the Facebook login window for user
  
      FB.login(function(response) {
  
          if (response.session) { 
  
              document.getElementById("status").innerHTML = "Logged In. Ora puoi caricare gli album.";
  
              loggedIn = true;
  
              //disables the login button after the user has loggedIn
  
              document.getElementById("loginBtn").disabled = "Disabilitato";
  
              document.getElementById("loginBtn").style.display = "None";
  
              document.getElementById("albumBtn").style.display = "inline";
  
              document.getElementById("fb_logo").style.display = "None";
  
              document.getElementById("label_fb").style.display = "None";
  
  
  
  
  
          } else {
  
              document.getElementById("status").innerHTML = "Non hai effettuato il Facebook Login";
  
              loggedIn = false;
  
          }
  
      },{perms:'user_photos'});
  
  }
  </code></pre>