Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'DENY'. #95

Open
paramsinghvc opened this issue Mar 24, 2015 · 2 comments

Comments

@paramsinghvc
Copy link

When I logout of my Facebook page in another tab on the same browser and then I try to logout of my angular app it gives me this error
Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'DENY'.
But if I'm logged in into facebook and then logout it works fine.
How can I detect an event that is triggered when the user logs out from fb in another tab?

@ghost
Copy link

ghost commented Oct 18, 2017

You need to add your website url in facebook developer admin ... get into facebook dev platforma chose your aplication and go to settings ... on the bottom add a web platforma and type there your domain .... that thing helped me to erase the console error ..

@ntduoc
Copy link

ntduoc commented Jul 29, 2021

Use script

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Instead of

`<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0&appId=xxxxxxxxxxxxx&autoLogAppEvents=1" nonce="PZP7X1PT"></script>`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants