title: iphone facebook session failing. why?
body: <p>I'm learning how to integrate facebook api in iphone app.
  First I visited facebook website, went to applications->developer and created an app. Noted down private key and secret key.
  Now, I'm using FBConnect sample code. I am using my keys in FBConnect app. And I set session proxy as </p>
  
  <pre><code>static NSString* kGetSessionProxy = @"SessionViewController"; // @"&lt;YOUR SESSION CALLBACK)&gt;";
  </code></pre>
  
  <p>I'm able to run the app and when I click "Connect to Facebook", its asking me for credentials as well. But afte providing credentials, its failing. The following delegate method is being called:</p>
  
  <pre><code>- (void)sessionDidNotLogin:(FBSession*)session { _label.text = @"Canceled login"; }
  </code></pre>
  
  <p>I'm not understanding why I'm ending up in above delegate.</p>
  
  <p>What are all options that I've to select in facebook website when creating new application?</p>
  
  <p>Please help me.</p>