title: "Given URL is not whitelisted in Client OAuth Settings" on Facebook login at a test host
body: <p>I am using Facebook PHP SDK to implement login with facebook. And I want to test it in local first. I created a test app and I tried many things but still does not work for me.</p>
  
  <p>In my local I have an apache virtual host configured so that I can access my local web app with this url: <a href="http://www.myapplocal.com">http://www.myapplocal.com</a></p>
  
  <p>Here is the error that I get after signing in with facebook:</p>
  
  <pre><code>Given URL is not whitelisted in Client OAuth Settings: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
  </code></pre>
  
  <p>And here is what I have in the oauth settings section:</p>
  
  <pre><code>Client OAuth Login: yes
  Web OAuth Login: yes
  Force Web OAuth Reauthentication: no
  Embedded Browser OAuth Login: no
  Valid OAuth redirect URIs: http://www.myapplocal.com/index.php/facebook-login-callback
  Login from Devices: no
  </code></pre>
  
  <p>And here is what I have in the section "Basic" (<a href="https://developers.facebook.com/apps/appid/settings/basic/">https://developers.facebook.com/apps/appid/settings/basic/</a>):</p>
  
  <pre><code>Namespace:
  App domains: www.myapplocal.com
  Site Url: http://www.myapplocal.com/
  </code></pre>