title: Facebook login throws "Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed
body: <p>I know this question was already asked many times, but still It seems to throw this error altough I tried several url addresses.</p>
  
  <p>I'm trying to make facebook login through a asp.net mvc app like in microsoft tutorial 
  <a href="http://www.asp.net/mvc/tutorials/security/using-oauth-providers-with-mvc" rel="noreferrer">here</a>. </p>
  
  <p>When I check it on local host it works fine (Site URL in facebook is set to: <code>http://localhost:55797/</code>
  but when I try to check it after I upload the app to the server it gives me this error:</p>
  
  <pre><code>Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
  </code></pre>
  
  <p>My server's login page is: <strong><a href="http://proj.ruppin.ac.il/igroup20/test1/Account/Login.aspx" rel="noreferrer">http://proj.ruppin.ac.il/igroup20/test1/Account/Login.aspx</a></strong></p>
  
  <p>I tried to write the following in my facebook app settings Site URL:</p>
  
  <pre><code>*http://proj.ruppin.ac.il/
  *http://proj.ruppin.ac.il/igroup20/
  *http://proj.ruppin.ac.il/igroup20/test1/
  *http://proj.ruppin.ac.il/igroup20/test1/Account/
  *http://proj.ruppin.ac.il/igroup20/test1/Account/Login.aspx
  </code></pre>
  
  <p>but none of them works for me.</p>
  
  <p>this is my AuthConfig.cs:</p>
  
  <pre><code>public static void RegisterOpenAuth()
          {
              // See http://go.microsoft.com/fwlink/?LinkId=252803 for details on setting up this ASP.NET
              // application to support logging in via external services.
  
              //OpenAuth.AuthenticationClients.AddTwitter(
              //    consumerKey: "your Twitter consumer key",
              //    consumerSecret: "your Twitter consumer secret");
  
              OpenAuth.AuthenticationClients.AddFacebook(
                  appId: "474928559284763",
                  appSecret: "****"); //hidden just for this question
  
  
              //OpenAuth.AuthenticationClients.AddMicrosoft(
              //    clientId: "your Microsoft account client id",
              //    clientSecret: "your Microsoft account client secret");
  
              //OpenAuth.AuthenticationClients.AddGoogle();
          }
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>those are the screens that seems relevant to me, but I seem to have different gui, not like Tommy for example down here in this post:</p>
  
  <p><img src="https://i.stack.imgur.com/Sjdfm.jpg" alt="Screen1"></p>
  
  <p><img src="https://i.stack.imgur.com/Xfgor.jpg" alt="Screen2"></p>
  
  <p><strong>EDIT2:</strong></p>
  
  <p>I just noticed there is a place for app domains and wrote there "proj.ruppin.ac.il" and in the web site url: "<a href="http://proj.ruppin.ac.il/igroup20/test1/" rel="noreferrer">http://proj.ruppin.ac.il/igroup20/test1/</a>" but still same error</p>