title: New Facebook API issue
body: <p>Can anyone help me with this code and tell me what is wrong?</p>
  
  <p>My code is not working anymore with the new Facebook API and I am getting the below errors!</p>
  
  <pre><code>Uncaught Error: OAuth2 specification states that 'perms' should now be called 
  'scope'. Please update.
  
  Error is in http://connect.facebook.net/en_US/all.js line 23
  </code></pre>
  
  <p>And even if I changed it, it still does not work at all!</p>
  
  <pre><code>//THIS FUNCTION WILL INITIALIZE THE FACEBOOK API AND WILL ADD NEW FACEBOOK ACCOUNTS.
  var apikey = $("#apikey").val();
  //var tuittingID = $("#tuittingID").val();
  FB.init({ apiKey: apikey, status : true, cookie : true, oauth: true });
  FB.getLoginStatus(handleSessionResponse);
  $('#FBlogin').live('click', function() {
      FB.login(handleSessionResponse, {
          scope:'manage_pages, publish_stream, offline_access, user_status, 
          read_insights'
      });
      return false;
  });
  function handleSessionResponse(response) {
      if (!response.session || String(response.scope) == '') {
          return;
      }
      else
      var tuittingID = $.cookie("tuittingID");
      $('#AccessToken').val(response.session.access_token);
      $("#loader").show();
      $.post("tuitting/facebook_lib/fbadd.php",
      { tuittingID: tuittingID, uid: FB.getSession().uid, usid: 
      FB.getSession().session_key, accesstoken: response.session.access_token },
      function(data){
          reloadAccounts();
          $("#loader").hide();
          FB.logout(function(response) {
          }); //END LOGOUT FROM FACEBOOK AFTER SUCCESSFULL ACTION
      }
      ); //END AJAX POST FUNCTION DATA
  }
  </code></pre>