Menu

Dipesh Majumdar

Blog and Paintings

How to get url of image from Facebook Image

November 2, 2014

It's little tricky.

A few days ago i managed to do this but today when i tried once more i couldn't. 

Well I deviced a trick here - just give it a try - if it works good...

First the constant part - 

https://scontent-b.xx.fbcdn.net/hphotos-xap1/ 

That part of the url is the constant part. Now we will work on the remaining part of the url of the image. Click on the image and do an inspect element. Copy the image part of the html script in a note pad and then write down the url below. An example shown below - 

<img class="spotlight" alt="" aria-describedby="fbPhotosSnowliftCaption" aria-busy="false" src="https://scontent-b-ams.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/10407510_822298294499547_3583513108137230902_n.jpg?oh=e5e7cd425bd4701d70737de18d2e4e01&amp;oe=54AA2BFD" style="width: 520px; height: 381px;">

from here copy this part only - >

https://scontent-b-ams.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/10407510_822298294499547_3583513108137230902_n.jpg

now from the above url replace this parth {https://scontent-b-ams.xx.fbcdn.net/hphotos-xap1/v/} with the constant part. Resultant url should be like this - 

https://scontent-b.xx.fbcdn.net/hphotos-xap1/t1.0-9/10407510_822298294499547_3583513108137230902_n.jpg 

Bingo!

this actually works. Don't know how long this will work as the developers keep working on the codes ... but for now it works and so the grin in my face.

A little later i noticed this - if you remove /v from {https://scontent-b-ams.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/10407510_822298294499547_3583513108137230902_n.jpg}... the resultant url works as well, but although the image is smaller: 

https://scontent-b-ams.xx.fbcdn.net/hphotos-xap1/t1.0-9/10407510_822298294499547_3583513108137230902_n.jpg

Go Back

Comment