title: Facebook Login from subdomains (too many "Valid OAuth redirect URIs")
body: <p>I've faced with the following problem:</p>
  
  <p>I'm using Facebook js sdk for the login process.</p>
  
  <p>In App settings <strong>Site URL</strong> is set to <em>"<a href="http://example.com/" rel="nofollow noreferrer">http://example.com/</a>"</em>, <strong>App Domains</strong> are <em>"example.com, www.example.com"</em>.</p>
  
  <p>In Facebook Login Settings <strong>"Valid OAuth redirect URIs"</strong> are <em>"<a href="http://example.com/" rel="nofollow noreferrer">http://example.com/</a>, <a href="http://www.example.com/" rel="nofollow noreferrer">http://www.example.com/</a>"</em>.</p>
  
  <p>From the main domain it works just fine, but under subdomain (e.g. <a href="http://subdomain.example.com/" rel="nofollow noreferrer">http://subdomain.example.com/</a>) i get the following error: </p>
  
  <blockquote>
    <p>"URL Blocked: 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."</p>
  </blockquote>
  
  <p>When I add this subdomain to "Valid OAuth redirect URIs", this problem disappears. But I have too many subdomains to list them all. <strong>Is it possible to accept all the subdomains as valid OAuth redirect URLs? Or what approach to solve this problem can be?</strong></p>
  
  <p>Thank you very much</p>