Omniauth-facebook login does not work

╄→尐↘猪︶ㄣ 提交于 2020-01-05 01:25:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!