照片的 HTTPS URL
FQL 照片表中的所有照片 URL 都是 HTTP-URL,而不是 HTTPS-URL。无法用 https 代替 http 来重写 URL。我该如何获取 HTTPS-URL?
原因:
当用户加载包含带有 HTTP-URL 的对象的 HTTPS 页面时,Internet Explorer 将通过弹出窗口警告用户。由于 Facebook 要求应用程序支持 HTTPS,并且 Facebook 完全支持 Internet Explorer(我猜,但我实际上不确定这一点),因此应该有一种方法来获取照片的 HTTPS-URL。
FQL 查询示例:
SELECT pid, src_small FROM photo WHERE pid IN ('xxx');
All photo URLs in the FQL photo table are HTTP-URLs and not HTTPS-URLs. It's not possible to rewrite the URL with https instead of http. How do I do to get the HTTPS-URLs instead?
Why:
Internet Explorer is warning users with a pop-up when they load a HTTPS page which includes objects with HTTP-URLs. Since Facebook requires apps to have HTTPS support and since Facebook supports Internet Explorer fully (I guess but I'm actually not sure about this), there should be a way to get HTTPS-URLs to photos.
Example FQL query:
SELECT pid, src_small FROM photo WHERE pid IN ('xxx');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的 API 调用中,添加
return_ssl_resources=1
参数,这将导致图像 URL 以 HTTPS URL 的形式返回In your API call, add a
return_ssl_resources=1
parameter, which will cause the image URLs to come back as HTTPS URLs试试这个:
Try this: