[Hard to solve problem] Is internally, ionic using iframe?

There are several facebook plugins that I try to use with website and be able to successfully logout and destroy facebook cookies/session. So the user be able to login with different user name. Or is they any example that use facebook logout succesfully log the user out

Two of them have these below error message but if trying out without ionic, it did not have problem. The error below when using facebook logout function

Refused to display ‘https://www.facebook.com/home.php’ in a frame because it set ‘X-Frame-Options’ to ‘DENY’.

Thanks in advance

Try to use angularjs directive to remove some header info.

.config(['$httpProvider', function ($httpProvider) {
  $httpProvider.defaults.useXDomain = true;
  delete $httpProvider.defaults.headers.common['X-Requested-With'];

Thank you, I test your feedback using [‘X-Requested-With’] and [‘X-Frame-Options’] and still have the same problem.
“Refused to display ‘https://www.facebook.com/home.php’ in a frame because it set ‘X-Frame-Options’ to ‘DENY’.”

Any one has example or has ever implemented facebook plugin with ionic that “successfully” logging out user? and can login with different user

You’re getting this because facebook doesn’t allow access to it’s api through iframes, which would be how cordova handles things.

You may want to check out this: