This.auth.login('facebook').. Refused to display 'https://www.facebook.com/v2.7/dialog/oauth?...." in a frame because it set 'X-Frame-Options' to 'DENY'


#1

I am using ionic v2 and trying to include facebook authentication to run in browser using the inAppBrowser plugin.

When I call this.auth.login(‘facebook’) natively, it works great. However, when i call that in a browser i get the following error message

Refused to display 'https://www.facebook.com/v2.7/dialog/oauth?.…" in a frame because it set ‘X-Frame-Options’ to ‘DENY’"

I have followed all the instructions here (https://docs.ionic.io/services/auth/facebook-auth.html#authentication-providers) but I am still getting that error.


#2

I am having the same problem as this.

As far as I can see facebook authentication within the browser using inAppBrowser doesn’t work.

As anyone managed to implement this successfully?

Any help is greatly appreciated!