开发者

In HTTPS mode FB.XFBML.parse on fb:profile-pic makes HTTP links to images

开发者 https://www.devze.com 2023-04-03 11:19 出处:网络
FB.XFBML.parse in HTTPS mode makes HTTP links to images (not H开发者_如何学编程TTPS). Is this bug of FB.XFBML.parse? What can I do to avoid this problem?I resolve this problem by using GraphAPI Pictur

FB.XFBML.parse in HTTPS mode makes HTTP links to images (not H开发者_如何学编程TTPS). Is this bug of FB.XFBML.parse? What can I do to avoid this problem?


I resolve this problem by using GraphAPI Pictures links http://developers.facebook.com/docs/reference/api/. It has special parameter return_ssl_resources=1 for HTTPS protocol. So I use https://graph.facebook.com/facebook_id/picture?return_ssl_resources=1 link.

0

精彩评论

暂无评论...
验证码 换一张
取 消