Facebook SDK是否需要HTTPS? [英] Does Facebook SDK require HTTPS?

查看:182
本文介绍了Facebook SDK是否需要HTTPS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用facebook SDK.我收到以下错误:

I am using facebook SDK. I am getting the following 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://

学习后,我知道必须在"facebook登录>设置>"下将强制HTTPS"设置为否".但是我无法将Enforce HTTPS设置为NO.这是我的问题吗?还是我的Facebook限制使用https而不是http?

After studying I came to know that I have to set 'Enforce HTTPS' as NO under 'facebook login> Setting> '. But I can not set Enforce HTTPS as NO. Is this problem is from mine? OR I facebook restrict to use https instead of http?

推荐答案

但是我无法将Enforce HTTPS设置为NO.这是我的问题吗?

But I can not set Enforce HTTPS as NO. Is this problem is from mine?

https://developers.facebook.com/docs/facebook-login/security :

强制执行HTTPS.此设置需要OAuth重定向使用HTTPS,并且页面需要使用JavaScript SDK来获取访问令牌. 截至2018年3月创建的所有新应用均默认启用此设置,您应计划在2019年3月之前迁移所有现有应用以仅使用HTTPS URL.

Enforce HTTPS. This setting requires HTTPS for OAuth Redirects and pages getting access tokens with the JavaScript SDK. All new apps created as of March 2018 have this setting on by default and you should plan to migrate any existing apps to use only HTTPS URLs by March 2019.

对我来说,好像他们不希望您现在就创建一个新应用时都不需要HTTPS就可以开始.

Sounds to me, like they don’t want you to be able to even start without HTTPS, when you are creating a new app now.

此外,Chrome浏览器最近宣布,将从68版本开始,所有HTTP网站都将被标记为不安全,并将于2018年7月发布.因此,无论如何您都必须尽快使用HTTPS.

Plus, Chrome has recently announced that they will mark all HTTP sites as insecure soon, from version 68 on, that will be released in July 2018. So you’re gonna have to go HTTPS rather sooner than later anyway.

无论我们是否愿意,该行业的大参与者"目前都在推动这一大时代.

The "big players" of the industry are currently pushing for this big time, whether we want it or not.

这篇关于Facebook SDK是否需要HTTPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆