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

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

问题描述

我刚刚注意到,在从Feed中检索图片网址时,Facebook已被更改。通常我用_n替换_s,并获得正常图像。



现在我得到这样的感觉:





只是小。如何获得更大的图像?

解决方案

您应该理想地使用图形API来获取图片。
如果然而,您需要从这些类型的url链接获得更大的图像。
首先在302重定向后重新获取最终的URL:


h 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_1807442783989783336_n.jpg?oh=a4035ad97f2fa1f9a5cf1612e2195662& oe = 542053AD



编辑:此方法不再工作,图形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天全站免登陆