Facebook SDK Logout Javascript FB.logout X-Frame-Options [Solution]
Why Stack Overflow recommends it
Stack Overflow users link it when answering questions about Facebook JS SDK logout or share dialogs failing with an X-Frame-Options DENY error, as a walkthrough of the dashboard setting that fixes it.
Recommended by 3 people across 3 different months, 2014 to 2020.
What it is
A short 2014 screencast that shows how to make FB.logout() work with the Facebook SDK for JavaScript when the browser reports a refused frame because X-Frame-Options is set to DENY. The fix is done in the Facebook developer dashboard by adding a Website platform with the site's URL. It is presented by the Sector Geek channel.
What people said
Recommends SoldierCorp · 2014-08 · Stack Overflow · on “Facebook JS API can't logout”
This solution worked for me: Go to Settings tab in your facebook application and in Basic tab scrolldown to +Add Platform Click on +Add Platform and choose Website Add your url of your website (for me, was the same url added on Advanced tab on Redirect URIs) Save changes and test again. Also I made a youtube video to solve this problem: [this video]
Recommends Vojtiik · 2015-05 · Stack Overflow · on “Refused to display in a frame because it set 'X-Frame-Options' to DENY facebook fb.ui share method”
You must allow your mobile app domain in the FB developers dash. I had this issue with FB.ui - 'share' when the user wasn't logged into FB. I found this video quite helpful : [this video]
Recommends Camille · 2020-06 · Stack Overflow · on “Refused to display <Facebook URL> in a frame because it set 'X-Frame-Options' to 'deny'”
Did you have a look to this video [this video] ? It's indeed apparently needed to do something on facebook dev site