问题
I cloned example facebook integration
this repo to see how the omniauth-facebook works. I setup my own app_id and app_secret from my facebook app.
The problem is the facebook login doesn't works. It throws an error: "Insecure Login Blocked: You can't get an access token or log in to this app from an insecure page. Try re-loading the page as https://" when I try login via facebook.
Does anyone have error like this one? How to solve it?
回答1:
It looks like Facebook enforces HTTPS by default, but you can turn it off if you need to: You can read more about it here
This is how I turn it off for my learning project
来源:https://stackoverflow.com/questions/49310909/omniauth-facebook-login-does-not-work