Created By
Mor Ga
06/07/2012 4:10am

Subscribers (24)

Bugsphoto URLs now contain underscores which causes issues in Java

  • Status: Fixed
  • Priority: Medium
  • Updated: July 2, 2012 at 9:28pm
Latest response from Facebook
Øyvind Sean Kinsey
This should now be resolved. Thanks for your patience.
Status changed to Fixed · July 2, 2012 at 9:28pm
Jeff Bowen
Thanks for the report. We will follow up.
Status changed to Triaged · Priority changed to Medium · June 15, 2012 at 5:07pm
Seems like in the past few days cover photos urls have changed from: https://fbcdn-sphotos-a.akamaihd.net/... to https://fbcdn_sphotos_a-a.akamaihd.net/... the new url's underscores causes a lot of issues in Java (in our case on Android), since they're not legal urls (hostnames shouldn't have underscores).
See problems of handling url's in many enviroments, including java, here:
http://stackoverflow.com/search?q=hostname+uri+underscore

I've noticed that when I try to get public cover photos w/o an access token, I get a different link, w/o underscores, e.g. cover photo for Mark Zuckerberg w/ access token returns:
https://fbcdn_sphotos_a-a.akamaihd.net/hphotos-ak-ash4/s720x720/311205_989690200741_1231438675_n.jpg
and the same request w/o access token returns:
http://a1.sphotos.ak.fbcdn.net/hphotos-ak-ash4/s720x720/311205_989690200741_1231438675_n.jpg
9 people can reproduce this issue by following these steps
Repro