ionic facebook login, Unable to login with openFB, Error in domain url

624 views Asked by At

i want to login via facebook on ionic app. but it is working fine on browser but in mobile device it fires error as.

Can't Load URL: The domain of this URL isn't included in the app's domains. 
To be able to load this URL, add all domains and subdomains
 of your app to the App Domains field in your app settings.

can anybody tell me why this is occuring

2

There are 2 answers

5
Anuj On BEST ANSWER

In the left hand side of app setting select Products and add product. Then select Facebook Login.

Then add http://localhost:(Port no)/ to the field 'Valid OAuth redirect URIs', and then everything will work fine.

2
sam On

Try using this as redirect url

http://localhost/callback