title: Facebook Login Dialog Error on iOS
body: <p>HEllo i am using old facebook sdk i think it is 3.0 and now i am going to update the app but during testing cant login on facebook now please let me know how to fix it.
  Upgrading to 3.1 is too complex in the app for my app.</p>
  
  <p><img src="https://i.stack.imgur.com/1C1TJ.png" alt="enter image description here"></p>
  
  <pre><code>//Facebook Login  
          appDelegate.flag = 1;
          appDelegate.facebook.accessToken = nil;
          appDelegate.facebook.expirationDate = nil;
  
          NSHTTPCookieStorage* cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
          NSArray* facebookCookies = [cookies cookies];
          for (NSHTTPCookie* cookie in facebookCookies) {
              [cookies deleteCookie:cookie];
          }
  
          NSArray *permissions = [NSArray arrayWithObjects: @"status_update", @"publish_stream", @"offline_access", @"publish_actions", @"read_stream", @"user_photos", @"photo_upload", @"photo_tag", nil];
  
          [appDelegate.facebook authorize:permissions];
  </code></pre>
  
  <p>}</p>