Facebook SDK FB.GetLoginStatus Load denied by X-Frame-Options (Firefox Only)










3















I have this web application login page that calls FB.GetLoginStatus() from the Facebook JavaScript SDK after the document is done loading. This worked perfectly fine on all browsers (mobile included) and that was the happily ever after.



BUT, one day, out of plain nowhere, I notice that the SDK is failing to get the login status data of the Facebook user when the page is done loading. I take a look in the console and I see something around the lines of




Load denied by X-Frame-Options [massive link generated by the SDK]
does not permit framing.




Here's what bugs me: this works perfectly fine in Safari. I was introduced to the error when I opened the web app on Chrome (same error as quoted above, slightly different wording). I tried on Firefox and got the same thing. I spent a few hours trying to find a cause but failed and went to sleep.



I wake up the next day and miraculously it's now working on Chrome (?) without me having done any changes (?!). But, for some reason, the error persists only in Firefox now.



Does anyone have a clue what this might be? Something that Firefox does differently that Safari and Chrome don't?



A clue here is that I'm using a tunneling service (ngrok) and I don't have a signed certificate for it, thus I get the casual (you're entering an 'unsafe' website, blah blah blah). Perhaps Firefox is blocking the SDK because the connection is not secure?



Any insight on this would be marvelous. Thanks 🙂










share|improve this question






















  • did you check out open bugs? if something suddently does not work anymore, there´s usually a bug, or facebook changed something. btw, you should add the relevant code, that´s very important. but you may be right about the certification issue, browsers handle this in a different way.

    – luschn
    Nov 15 '18 at 8:25












  • Hi @luschn, yeah searched through open bugs and here on StackOverflow as well. Either the question was several years back or the bug closed. Going to try some random configurations and see if I can poke the bear, but so far this seems very odd.

    – Daniel
    Nov 15 '18 at 13:28
















3















I have this web application login page that calls FB.GetLoginStatus() from the Facebook JavaScript SDK after the document is done loading. This worked perfectly fine on all browsers (mobile included) and that was the happily ever after.



BUT, one day, out of plain nowhere, I notice that the SDK is failing to get the login status data of the Facebook user when the page is done loading. I take a look in the console and I see something around the lines of




Load denied by X-Frame-Options [massive link generated by the SDK]
does not permit framing.




Here's what bugs me: this works perfectly fine in Safari. I was introduced to the error when I opened the web app on Chrome (same error as quoted above, slightly different wording). I tried on Firefox and got the same thing. I spent a few hours trying to find a cause but failed and went to sleep.



I wake up the next day and miraculously it's now working on Chrome (?) without me having done any changes (?!). But, for some reason, the error persists only in Firefox now.



Does anyone have a clue what this might be? Something that Firefox does differently that Safari and Chrome don't?



A clue here is that I'm using a tunneling service (ngrok) and I don't have a signed certificate for it, thus I get the casual (you're entering an 'unsafe' website, blah blah blah). Perhaps Firefox is blocking the SDK because the connection is not secure?



Any insight on this would be marvelous. Thanks 🙂










share|improve this question






















  • did you check out open bugs? if something suddently does not work anymore, there´s usually a bug, or facebook changed something. btw, you should add the relevant code, that´s very important. but you may be right about the certification issue, browsers handle this in a different way.

    – luschn
    Nov 15 '18 at 8:25












  • Hi @luschn, yeah searched through open bugs and here on StackOverflow as well. Either the question was several years back or the bug closed. Going to try some random configurations and see if I can poke the bear, but so far this seems very odd.

    – Daniel
    Nov 15 '18 at 13:28














3












3








3








I have this web application login page that calls FB.GetLoginStatus() from the Facebook JavaScript SDK after the document is done loading. This worked perfectly fine on all browsers (mobile included) and that was the happily ever after.



BUT, one day, out of plain nowhere, I notice that the SDK is failing to get the login status data of the Facebook user when the page is done loading. I take a look in the console and I see something around the lines of




Load denied by X-Frame-Options [massive link generated by the SDK]
does not permit framing.




Here's what bugs me: this works perfectly fine in Safari. I was introduced to the error when I opened the web app on Chrome (same error as quoted above, slightly different wording). I tried on Firefox and got the same thing. I spent a few hours trying to find a cause but failed and went to sleep.



I wake up the next day and miraculously it's now working on Chrome (?) without me having done any changes (?!). But, for some reason, the error persists only in Firefox now.



Does anyone have a clue what this might be? Something that Firefox does differently that Safari and Chrome don't?



A clue here is that I'm using a tunneling service (ngrok) and I don't have a signed certificate for it, thus I get the casual (you're entering an 'unsafe' website, blah blah blah). Perhaps Firefox is blocking the SDK because the connection is not secure?



Any insight on this would be marvelous. Thanks 🙂










share|improve this question














I have this web application login page that calls FB.GetLoginStatus() from the Facebook JavaScript SDK after the document is done loading. This worked perfectly fine on all browsers (mobile included) and that was the happily ever after.



BUT, one day, out of plain nowhere, I notice that the SDK is failing to get the login status data of the Facebook user when the page is done loading. I take a look in the console and I see something around the lines of




Load denied by X-Frame-Options [massive link generated by the SDK]
does not permit framing.




Here's what bugs me: this works perfectly fine in Safari. I was introduced to the error when I opened the web app on Chrome (same error as quoted above, slightly different wording). I tried on Firefox and got the same thing. I spent a few hours trying to find a cause but failed and went to sleep.



I wake up the next day and miraculously it's now working on Chrome (?) without me having done any changes (?!). But, for some reason, the error persists only in Firefox now.



Does anyone have a clue what this might be? Something that Firefox does differently that Safari and Chrome don't?



A clue here is that I'm using a tunneling service (ngrok) and I don't have a signed certificate for it, thus I get the casual (you're entering an 'unsafe' website, blah blah blah). Perhaps Firefox is blocking the SDK because the connection is not secure?



Any insight on this would be marvelous. Thanks 🙂







javascript facebook firefox runtime-error facebook-javascript-sdk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 3:24









DanielDaniel

616




616












  • did you check out open bugs? if something suddently does not work anymore, there´s usually a bug, or facebook changed something. btw, you should add the relevant code, that´s very important. but you may be right about the certification issue, browsers handle this in a different way.

    – luschn
    Nov 15 '18 at 8:25












  • Hi @luschn, yeah searched through open bugs and here on StackOverflow as well. Either the question was several years back or the bug closed. Going to try some random configurations and see if I can poke the bear, but so far this seems very odd.

    – Daniel
    Nov 15 '18 at 13:28


















  • did you check out open bugs? if something suddently does not work anymore, there´s usually a bug, or facebook changed something. btw, you should add the relevant code, that´s very important. but you may be right about the certification issue, browsers handle this in a different way.

    – luschn
    Nov 15 '18 at 8:25












  • Hi @luschn, yeah searched through open bugs and here on StackOverflow as well. Either the question was several years back or the bug closed. Going to try some random configurations and see if I can poke the bear, but so far this seems very odd.

    – Daniel
    Nov 15 '18 at 13:28

















did you check out open bugs? if something suddently does not work anymore, there´s usually a bug, or facebook changed something. btw, you should add the relevant code, that´s very important. but you may be right about the certification issue, browsers handle this in a different way.

– luschn
Nov 15 '18 at 8:25






did you check out open bugs? if something suddently does not work anymore, there´s usually a bug, or facebook changed something. btw, you should add the relevant code, that´s very important. but you may be right about the certification issue, browsers handle this in a different way.

– luschn
Nov 15 '18 at 8:25














Hi @luschn, yeah searched through open bugs and here on StackOverflow as well. Either the question was several years back or the bug closed. Going to try some random configurations and see if I can poke the bear, but so far this seems very odd.

– Daniel
Nov 15 '18 at 13:28






Hi @luschn, yeah searched through open bugs and here on StackOverflow as well. Either the question was several years back or the bug closed. Going to try some random configurations and see if I can poke the bear, but so far this seems very odd.

– Daniel
Nov 15 '18 at 13:28













1 Answer
1






active

oldest

votes


















3














OK, after fighting this for a few hours I finally found out what was bothering Firefox: the website site URL field in the app's Facebook Dashboard settings.



The issue wasn't even with ngrok or a missing signed certificate, it was the fact that the website in the settings had the production domain (.app) instead of the ngrok one I'm currently using for development (eu.ngrok.io).



The only reason I managed to pinpoint this back to the dashboard settings is because I have 2 Facebook apps, and the other one was working fine, so I imagined it might be a misconfiguration in the settings that was causing the issue (Facebook has a shitty standard in place for explaining/handling errors — it's like shooting in the dark until you hit something when using their SDK's).



What I don't understand here is why the heck only Firefox seems to have a problem with this setting being misconfigured or why the issue disappeared out of nowhere from one day to the next for Chrome. Anyways, if I managed to help anyone else fix anything similar with this thread than this headache has been worthwhile.



Peace out ✌🏽






share|improve this answer























  • This solved it for me after much searching. Muchas gracias!!!

    – ni_lo
    2 days ago











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311952%2ffacebook-sdk-fb-getloginstatus-load-denied-by-x-frame-options-firefox-only%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














OK, after fighting this for a few hours I finally found out what was bothering Firefox: the website site URL field in the app's Facebook Dashboard settings.



The issue wasn't even with ngrok or a missing signed certificate, it was the fact that the website in the settings had the production domain (.app) instead of the ngrok one I'm currently using for development (eu.ngrok.io).



The only reason I managed to pinpoint this back to the dashboard settings is because I have 2 Facebook apps, and the other one was working fine, so I imagined it might be a misconfiguration in the settings that was causing the issue (Facebook has a shitty standard in place for explaining/handling errors — it's like shooting in the dark until you hit something when using their SDK's).



What I don't understand here is why the heck only Firefox seems to have a problem with this setting being misconfigured or why the issue disappeared out of nowhere from one day to the next for Chrome. Anyways, if I managed to help anyone else fix anything similar with this thread than this headache has been worthwhile.



Peace out ✌🏽






share|improve this answer























  • This solved it for me after much searching. Muchas gracias!!!

    – ni_lo
    2 days ago















3














OK, after fighting this for a few hours I finally found out what was bothering Firefox: the website site URL field in the app's Facebook Dashboard settings.



The issue wasn't even with ngrok or a missing signed certificate, it was the fact that the website in the settings had the production domain (.app) instead of the ngrok one I'm currently using for development (eu.ngrok.io).



The only reason I managed to pinpoint this back to the dashboard settings is because I have 2 Facebook apps, and the other one was working fine, so I imagined it might be a misconfiguration in the settings that was causing the issue (Facebook has a shitty standard in place for explaining/handling errors — it's like shooting in the dark until you hit something when using their SDK's).



What I don't understand here is why the heck only Firefox seems to have a problem with this setting being misconfigured or why the issue disappeared out of nowhere from one day to the next for Chrome. Anyways, if I managed to help anyone else fix anything similar with this thread than this headache has been worthwhile.



Peace out ✌🏽






share|improve this answer























  • This solved it for me after much searching. Muchas gracias!!!

    – ni_lo
    2 days ago













3












3








3







OK, after fighting this for a few hours I finally found out what was bothering Firefox: the website site URL field in the app's Facebook Dashboard settings.



The issue wasn't even with ngrok or a missing signed certificate, it was the fact that the website in the settings had the production domain (.app) instead of the ngrok one I'm currently using for development (eu.ngrok.io).



The only reason I managed to pinpoint this back to the dashboard settings is because I have 2 Facebook apps, and the other one was working fine, so I imagined it might be a misconfiguration in the settings that was causing the issue (Facebook has a shitty standard in place for explaining/handling errors — it's like shooting in the dark until you hit something when using their SDK's).



What I don't understand here is why the heck only Firefox seems to have a problem with this setting being misconfigured or why the issue disappeared out of nowhere from one day to the next for Chrome. Anyways, if I managed to help anyone else fix anything similar with this thread than this headache has been worthwhile.



Peace out ✌🏽






share|improve this answer













OK, after fighting this for a few hours I finally found out what was bothering Firefox: the website site URL field in the app's Facebook Dashboard settings.



The issue wasn't even with ngrok or a missing signed certificate, it was the fact that the website in the settings had the production domain (.app) instead of the ngrok one I'm currently using for development (eu.ngrok.io).



The only reason I managed to pinpoint this back to the dashboard settings is because I have 2 Facebook apps, and the other one was working fine, so I imagined it might be a misconfiguration in the settings that was causing the issue (Facebook has a shitty standard in place for explaining/handling errors — it's like shooting in the dark until you hit something when using their SDK's).



What I don't understand here is why the heck only Firefox seems to have a problem with this setting being misconfigured or why the issue disappeared out of nowhere from one day to the next for Chrome. Anyways, if I managed to help anyone else fix anything similar with this thread than this headache has been worthwhile.



Peace out ✌🏽







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 15 '18 at 18:30









DanielDaniel

616




616












  • This solved it for me after much searching. Muchas gracias!!!

    – ni_lo
    2 days ago

















  • This solved it for me after much searching. Muchas gracias!!!

    – ni_lo
    2 days ago
















This solved it for me after much searching. Muchas gracias!!!

– ni_lo
2 days ago





This solved it for me after much searching. Muchas gracias!!!

– ni_lo
2 days ago



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53311952%2ffacebook-sdk-fb-getloginstatus-load-denied-by-x-frame-options-firefox-only%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo