title: Facebook iOS SDK 4.2: Invalid URL Schemes for Multiple App Environments
body: <p>I need to use the same Facebook App ID for my <code>staging</code> and <code>production</code> builds. I've defined the URL schemes suffix in my app <code>.plist</code> file and configured the dashboard with the required Bundle Id and URL schemes ,following exactly as <a href="https://developers.facebook.com/docs/ios/troubleshooting" rel="nofollow noreferrer">sharing an app ID across Apps</a> doc.</p>
  
  <p><strong>Dashboard's URL scheme suffix:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/8HKgU.png" alt="enter image description here"></p>
  
  <p><strong>App-Info.plist:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/uXZsb.png" alt="enter image description here"></p>
  
  <p>The thing is , I am able to login with Facebook on my <code>staging</code> build properly but when I try to login on <code>production</code> build, it crashes and breaks at the following:</p>
  
  <p><img src="https://i.stack.imgur.com/nmx0P.png" alt="enter image description here"></p>
  
  <p>I've tried some of the almost similar solutions, but none of it is working for me. Can someone point me in the right direction?</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/21893447/facebook-sdk-app-not-registered-as-a-url-scheme">Facebook SDK: app not registered as a URL Scheme</a></li>
  <li><a href="https://stackoverflow.com/questions/17132003/fbsdklog-cannot-use-the-facebook-app-or-safari-to-authorize-fb-is-not-regi/18480723#18480723">FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb**** is not registered as a URL Scheme</a></li>
  </ul>