title: Facebook SDK on iOS Simulator
body: <p>I am developing an iPhone app that uses Facebook Connect to identify users.
  Everything worked fine until I upgraded my XCode to 4.2 from 4.0.</p>
  
  <p>When the application launches and the user is prompted to login to Facebook, the Facebook app is suppose to take over.<br>
  The code that invokes the Facebook mechanism:</p>
  
  <pre><code>Facebook *theFacebookSDK = [[Facebook alloc] initWithAppId:kZFBAppId];
  NSArray *permissions =  [NSArray arrayWithObjects:
                        @"user_birthday", @"publish_stream", @"offline_access",nil];
  [theFacebookSDK authorize:permissions delegate:self];
  </code></pre>
  
  <p>When I test it on the device, all is good.  </p>
  
  <p>When I test it on the iPhone Simulator, it opens Safari with some URL that the Facebook SDK generates.<br>
  But instead of allowing me to "Allow" the Facebook app, the web page is empty and has a navigation bar at the top with title "Add to Facebook", and a bar button item on the right side that says "Okay".<br>
  Tapping the "Okay" button gives a similar page with title "Error" and an error string: "An error occurred with FacebookAppName. Please try again later."<br>
  And of course, when I try later, the same thing happens.</p>
  
  <p>Anyone knows how to fix this?
  I want to continue developing on the simulator...</p>