title: How to setup facebook app for localhost?
body: <p>Today, I've been trying to setup facebook app for localhost and I couldn't find the right solution for it. It was working in the past and I don't know what facebook updated with it...</p>
  
  <p>Here's what I did: </p>
  
  <ol>
  <li><p>I've created test app from one of my public app</p></li>
  <li><p>In settings, I set site domain as "localhost" and site url as "<a href="http://localhost:8888/" rel="nofollow">http://localhost:8888/</a>"</p></li>
  <li><p>In settings/advanced, I set Valid OAuth redirect URIs as "<a href="http://localhost:8888/" rel="nofollow">http://localhost:8888/</a>" again.</p></li>
  </ol>
  
  <p>And when I try to login, I got the error message like below:</p>
  
  <p>{
     "error": {
        "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration",
        "type": "OAuthException",
        "code": 191
     }
  }</p>
  
  <p>Also I have public ip for my localhost and I tried to set it instead of localhost like "<a href="http://xx.xxx.xxx.xx:8888/" rel="nofollow">http://xx.xxx.xxx.xx:8888/</a>" but it's still not working. </p>
  
  <p>I'm really embarrased because it was working before. Can someone please help me out with this ?</p>
  
  <p>Thanks in advance.</p>