如何获得https下的Facebook个人资料图片? [英] How to get a facebook profile picture under https?
问题描述
是否有可能通过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屋!