title: How to store Facebook AppID key programmatically
body: <p>As we know for the Facebook SDK we should provide the <strong>URL types</strong> and the <strong>FacebookAppID</strong> keys in the App Plist.</p>
  
  <p>My question is how to store them programmatically without enter them manually in the plist, like in the <code>UIApplicationDelegate</code> method <code>didFinishLaunchingWithOptions</code>.</p>
  
  <p>I try to set it using <code>NSUserDefaults</code> but it keep give this error:</p>
  
  <pre><code>No AppID provided; either pass an AppID to init, or add a string valued key with the appropriate id named FacebookAppID to the bundle *.plist'
  </code></pre>
  
  <p>I don't know why but I guess Xcode store the keys using <code>NSUserDefaults</code> in somewhere else the default app Plist.</p>
  
  <p>Does anyone know how to fix this?</p>