如何获得https下的Facebook个人资料图片? [英] How to get a facebook profile picture under https?

查看:167
本文介绍了如何获得https下的Facebook个人资料图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能通过https使用新的Graph API获取Facebook个人资料图片?



我们在https下运行网站,但由facebook返回的个人资料图片图形API始终作为http(当使用 https://graph.facebook.com/XXX/picture ,请求将重定向到http:// ...)。



有人知道解决方法吗?

解决方案

下面是修正:
您需要参数:return_ssl_resources = true



示例:

https://graph.facebook.com/FB_UID/picture?return_ssl_resources = true


Is it possible to get an facebook profile picture under https using the new Graph API?

We run a site under https, but the profile picture returned by the facebook Graph API is always served as http (when using https://graph.facebook.com/XXX/picture, the request is redirects to http:// ...). The result is the dreaded mixed-content message.

Anybody know of a workaround?

解决方案

Here is the fix: you need to the parameter: return_ssl_resources=true

example:

https://graph.facebook.com/FB_UID/picture?return_ssl_resources=true

这篇关于如何获得https下的Facebook个人资料图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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