title: Facebook Login for Firefox OS Apps
body: <p>We are porting an App to Firefox OS but we want to implement the Facebook Login.</p>
  
  <p>We want to make it work only with a client-side. 
  We get </p>
  
  <blockquote>
    <ol>
    <li>API Error Code: 191</li>
    <li>API Error Description: The specified URL is not owned by the application</li>
    <li>Error Message: Invalid redirect_uri: Given URL is not allowed by the Application >configuration.</li>
    </ol>
  </blockquote>
  
  <p>We are not allowed to add the http: //localhost/ to Valid OAuth redirect URIs Under the Advanced Settings of the Application.</p>
  
  <p>Is there anyway to fix this. Using redirect_uri or make an iframe that loads the Dialog via the website?</p>
  
  <p>Any idea?</p>
  
  <hr>
  
  <p>In addition to my research i got this from Mozilla Developers</p>
  
  <blockquote>
    <p>redirects</p>
  </blockquote>
  
  <p>(Firefox OS only, privileged and certified apps only) A privileged or certified app might need to do external authentication. For example, the app could do Facebook OAuth authentication so it can get a person's contacts. When the authentication server is finished, it will usually redirect the app back to a URL that you control.</p>
  
  <p>But a privileged or certified app does not have a valid Web URL that can be redirected to, because the app is not hosted anywhere (it is a packaged app with no public origin). So you use the redirects field to redirect a Web URL to an internal app URL.</p>
  
  <p>Example:</p>
  
  <pre><code>"redirects": [
  {"from": "http://mydomain.com/oauth2/flow.html",
  "to": "/redirects/redirect.html"},
  {"from": "http://mydomain.com/oauth2/dialogs_end.html",
  "to": "/redirects/dialogs_end.html"}
  ],
  </code></pre>
  
  <p>For any further development i will update the question!</p>