如何从提要(现在)获取大图?Api 已更改 [英] How to get big picture from feed (now)? Api has been changed

查看:22
本文介绍了如何从提要(现在)获取大图?Api 已更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚注意到 Facebook 在从提要中检索图片网址时发生了变化.通常我用 _n 替换 _s 并得到正常"图像.

现在我得到了这样的东西:

HTTPS://scontent-b.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/p130x130/10527490_10152146397901714_1807442783989783336_n.jpg OH = a4035ad97f2fa1f9a5cf1612e2195662&安培; OE = 542053AD

这只是小".我怎样才能得到更大的?

解决方案

理想情况下,您应该使用图形 API 来获取图片.但是,如果您需要从这些类型的 url 链接中获得更大的图像.在 302 重定向后首先检索他们的最终网址:

<块引用>

ħTTPS://scontent-b.xx.fbcdn.net/hphotos-xfp1/的 V/t1.0-9/p130x130 /10527490_10152146397901714_1807442783989783336_n.jpg?oh=a4035ad97f2fa1f9a5cf1612e2195662&oe=542053AD

去掉粗体部分,即可得到原图:

的https://scontent-b.xx.fbcdn.net/hphotos-xfp1/10527490_10152146397901714_18074442783989783336_n.jpg?oh=a4035ad97f2fa1f9a5cf1616>5a2e2146397901714_1807442

EDIT :此方法不再有效,graph api 是最好的方法.

I just noticed that Facebook has been changed on retrieving the picture url from feed. Usually I replace _s with _n and I get the "normal" image.

Now I get somthings like this:

https://scontent-b.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/p130x130/10527490_10152146397901714_1807442783989783336_n.jpg?oh=a4035ad97f2fa1f9a5cf1612e2195662&oe=542053AD

which is only "small". How can I get the bigger one?

解决方案

You should ideally be using graph api to get pictures. If however, you need to get bigger image from these type of url links. First retreive their final url after 302 redirect :

h ttps://scontent-b.xx.fbcdn.net/hphotos-xfp1/v/t1.0-9/p130x130/10527490_10152146397901714_1807442783989783336_n.jpg?oh=a4035ad97f2fa1f9a5cf1612e2195662&oe=542053AD

Remove the bold part, and you will get the original image:

https://scontent-b.xx.fbcdn.net/hphotos-xfp1/10527490_10152146397901714_1807442783989783336_n.jpg?oh=a4035ad97f2fa1f9a5cf1612e2195662&oe=542053AD

EDIT : This method does not work anymore,graph api is the best way to go.

这篇关于如何从提要(现在)获取大图?Api 已更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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