We are porting an App to Firefox OS but we want to implement the Facebook Login.

We want to make it work only with a client-side. We get

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: Invalid redirect_uri: Given URL is not allowed by the 
Application >configuration.
We are not allowed to add the http: //localhost/ to Valid OAuth redirect URIs 
Under the Advanced Settings of the Application.

Is there anyway to fix this. Using redirect_uri or make an iframe that loads 
the Dialog via the website?

Any idea?

In addition to my research i got this from Mozilla Developers

redirects

(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.

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.

Example:

"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"}
],
For any further development i will update the question!
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to