zyra/ngx-facebook

Support https connection

babyangel0307 opened this issue · 2 comments

I found that Facebook was force restrict user using https connection to using the apis from 2018/04.
My app will facing an error from facebook:

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://

May i know how to enabled the secured mode or using https to connect?

tvl83 commented

I am testing on localhost without https. There's a setting in the facebook app that lets you turn off the requirement of https.

image

Hope this helps.

Thanks your reply, i have also try to disable this.
But Facebook mention that: All new apps created as of March 2018 have this setting on by default.
I have create a new fb app yesterday.
This button was disable and can not to toggle to turn off this function.

Ref: https://developers.facebook.com/docs/facebook-login/security/?locale=en_US#
See the Enforce HTTPS section.