I try to retrieve a picture from e.g
http://graph.facebook.com/btaylor/picture
using the following code:
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpGet request = new HttpGet(urlString);
HttpResponse response = httpClient.execute(request);
return response.getEntity().getContent();
but occasionally I get the exception
java.net.UnknownHostException: profile.ak.fbcdn.net
Why is this?
Edit: by "occasionally", I mean that it happens often enough that I know the reason is not "My internet is down" or "Facebook is down."