Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get big picture from feed (now)? Api has been changed

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?

like image 722
markzzz Avatar asked Jul 07 '14 08:07

markzzz


1 Answers

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.

like image 196
DhruvPathak Avatar answered Oct 01 '22 09:10

DhruvPathak