Get the original / unmodified image from home or feed

I get photos from home with this graphic API request https://graph.facebook.com/me?fields=home.filter ( photos ) .
Then, through the identifier of the object, I get an array of images that gives me different sizes, such as:

"images": [ { "height": 780, "width": 1240, "source": "https://fbcdn-sphotos-ga.akamaihd.net/hphotos-ak-prn2/281028_10151592859979158_562775226_o.jpg" }, { "height": 81, "width": 130, "source": "https://fbcdn-photos-ga.akamaihd.net/hphotos-ak-prn2/s75x225/969715_10151592859979158_562775226_s.jpg" } 

Is it possible to restore the original image?
The received image must have the same checksum, and then the sent image

+8
image facebook-graph-api
source share
2 answers

That the 100% checksum is not the same do not do this. What for? Because if you upload a .gif or .png image, Facebook will do the conversion to become a jpeg image instead. Therefore, even if you upload an image of 1920 x 1280.png, you can get a modified image of 1920 * 1280.jpeg. I have no idea that the facebook database will save the original image or not, but this is not something you can do using the Facebook API.

+3
source share

I don’t think you can get the exact same image using the checksum that you uploaded to your servers. I would think that Facebook changes them to certain formats so that the photo is consistent throughout the site.

However, they could keep a copy of the original photo that was uploaded. But as regards accessing it through the API or in some other way, I think it is best to look at the source in accordance with the Facebook documentation on the Photo Object :

The original image of the photo - currently it can have a maximum width or height of 720 pixels, increasing to 960 pixels from March 1, 2012.

You can get it through the API:

 /<photo id>/?fields=source 

Sorry this is not an exact answer, but I hope this helps.

+2
source share

All Articles