Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Complete
-
None
-
None
-
None
Description
Facebook increased the maximum size of their photos on March 1st. (see Roadmap)
The API documentation for the Photo object still states that the images array contains the 4 different stored representations of the photo, but it actually returns 7 images now.
For the example image the following array is returned:
"images": [ { "width": 2048, "height": 1373, "source": "http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s2048x2048/168119_10150146071831729_20531316728_7844072_5116892_n.jpg" }, { "width": 720, "height": 483, "source": "http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash3/168119_10150146071831729_20531316728_7844072_5116892_n.jpg" }, { "width": 720, "height": 483, "source": "http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash3/168119_10150146071831729_20531316728_7844072_5116892_n.jpg" }, { "width": 480, "height": 322, "source": "http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s480x480/168119_10150146071831729_20531316728_7844072_5116892_n.jpg" }, { "width": 320, "height": 214, "source": "http://a7.sphotos.ak.fbcdn.net/hphotos-ak-ash3/s320x320/168119_10150146071831729_20531316728_7844072_5116892_n.jpg" }, { "width": 180, "height": 120, "source": "http://photos-g.ak.fbcdn.net/hphotos-ak-ash3/168119_10150146071831729_20531316728_7844072_5116892_a.jpg" }, { "width": 130, "height": 87, "source": "http://photos-g.ak.fbcdn.net/hphotos-ak-ash3/168119_10150146071831729_20531316728_7844072_5116892_s.jpg" }, { "width": 130, "height": 87, "source": "http://photos-g.ak.fbcdn.net/hphotos-ak-ash3/s75x225/168119_10150146071831729_20531316728_7844072_5116892_s.jpg" } ]
Spring social currently processes the images by array index. Since the change, images of a totally different size are returned for the existing getters on the Photo class.
A simple solution would be to make all image sizes available through the Photo class, so users can lookup the image they want by width/height.