Facebook的个人资料图片即将发布为Http:安全网站预期Https: [英] Facebook profile pic coming up as Http: on secure website expected Https:

查看:144
本文介绍了Facebook的个人资料图片即将发布为Http:安全网站预期Https:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Drupal 7网站上,当用户使用Facebook登录时,它会提供不安全的图像

On my Drupal 7 Website when users login with Facebook it pulls an insecure image

http:// profile.ak.fbcdn.net/hprofile-ak-ash3 /211260_100002498550684_1807914074_s.jpg

http:// profile.ak.fbcdn.net/hprofile-ak-ash3/211260_100002498550684_1807914074_s.jpg

我正在使用Drupal For Facebook

I am using Drupal For Facebook

我遵循了这里的说明

Facebook JavaScript SDK通过HTTPS加载不安全的项目

也许它已经过时了,目前的修复是什么?

Maybe it is outdated, what is the current fix for this?

同样奇怪的是,当我使用我的Facebook帐户登录时,它没有问题

Also oddly, When I login with my Facebook account it does not have the problem

https:// fbcdn-profile-a.akamaihd.net/hprofile -ak-ash4 / 211648_100004825298386_474362609_s.jpg

https:// fbcdn-profile-a.akamaihd.net/hprofile-ak-ash4/211648_100004825298386_474362609_s.jpg

如何使个人资料图片安全无论怎样?谢谢你的时间。

How do I make the profile pics secure no matter what? Thank your for your time.

推荐答案

您可以轻松地使Graph API通过附加参数返回用户图片的SSL URL return_ssl_resources = 1 - 请参阅安全版本中的标记图片:

You can easily have the Graph API return the SSL URL for a user picture by appending the parameter return_ssl_resources=1 – see Mark’s picture, requested in the secure version:

https://graph.facebook.com/4/picture?return_ssl_resources=1

这篇关于Facebook的个人资料图片即将发布为Http:安全网站预期Https:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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