-
Notifications
You must be signed in to change notification settings - Fork 315
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
Facebook: Insecure Login Blocked #117
Comments
I solved it by enabling https for my node app. Edit index.js file of the app adding lines
in the start of the file
in the end |
@bugos could you please provide a bit more info on how to obtain the certificate?
but I don't know what domain name I should type in (as I'm running the application on localhost). |
I you are running in localhost I don't think you can request a valid certificate since you don't have a domain name. Check this answer where there is a link on how to generate a self signed certificate and use that. I think you will have to use Firefox to be able to bypass the "invalid certificate" warning that you are going to get because of the self signed certificate(google it for more details). |
Thanks :) I managed to get the certificate using this instructions: https://www.akadia.com/services/ssh_test_certificate.html |
@bugos, maybe you can help me with one more question? :) |
@Lukaszm94, I tried adding an ip in my facebook Client OAuth Settings and it did accept it. It also accepted it in the Advanced Settings->Domain manager list, after I unchecked the JS/CSS Prefetch option. If that doesn't work you can also try one of the options from here https://superuser.com/questions/1113845/how-to-give-a-domain-name-to-a-local-ip. The simplest is option three where you would add a line like |
@Lukaszm94 Can you please share how you solved the issue in details? |
Apart from steps mentioned in README, I modified index.js just like bugos pointed, but changed certificate and key paths to relative (and I also changed extension):
Then I generated key and certificate using steps 1 to 4 from this tutorial: https://www.akadia.com/services/ssh_test_certificate.html BTW I ran those steps on Ubuntu 16 and Raspbian Lite. @bugos Thanks, I haven't had time to try your advice, maybe this weekend I'll have some time (hopefully) :) |
I DO ALL steps but still not working can you help me please |
Worked for me on a different system first. Now, after setting up on a second system, this error appears.
Any ideas?
The text was updated successfully, but these errors were encountered: