title: Facebook Graph API request returning IOException "Hostname <fbcdn-profile-a.akamaihd.net> was not verified"
body: <p>So I'm trying to simply fetch the user's profile photo from facebook but I'm getting a null response from facebook.request(path) and the IOException "Hostname fbcdn-profile-a.akamaihd.net was not verified".</p>
  
  <p>Anyone know what could be causing this exception? Here's my method to call the facebook.request:</p>
  
  <pre><code>public Bitmap getUserPic(String path){
  
      URL picURL = null;
  
  
      try {
          responsePic = facebook.request(path);
          picURL = new URL(responsePic);
          HttpURLConnection conn = (HttpURLConnection)picURL.openConnection();
          conn.setDoInput(true);
          conn.connect();
          InputStream is = conn.getInputStream();
          userPic = BitmapFactory.decodeStream(is);
  
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (FacebookError e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  
      return userPic;
  
  }
  </code></pre>
  
  <p>The string "path" is "me/picture"</p>
  
  <p>Edit:</p>
  
  <p>Also tried setting picURL to "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/260885_608260639_822979518_q.jpg" which is the url that the request should return. Still no photo :(</p>
  
  <p>Thanks for any help</p>