title: java.net.UnknownHostException: graph.facebook.com
body: <p>I'm getting a UnknownHostException when trying to post a photo to the user wall.
  Here is my code:</p>
  
  <pre><code>    byte[] data = null;
  
      Bitmap bi = BitmapFactory.decodeResource(getResources(), aDrawableId);
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      bi.compress(Bitmap.CompressFormat.JPEG, 70, baos);
      data = baos.toByteArray();
  
      Bundle parameters = new Bundle();
      parameters.putByteArray("picture", data);
      Log.i(getClass().toString(), parameters.toString());
  
      AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(this.facebook);
      String method = String.format("me/photos?access_token=%s", this.facebook.getAccessToken());
      mAsyncRunner.request(method, parameters, "POST", new FacebookRequestListener(), null);
  </code></pre>
  
  <p>The permissions on my AndroidManifest file:</p>
  
  <pre><code>    &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code></pre>
  
  <p>I had the same problem as the following question before and I correct using the second answer (the top voted one):</p>
  
  <p><a href="https://stackoverflow.com/questions/3726429/post-message-to-facebook-wall-from-android-fb-sdk-always-error">Post message to facebook wall from android fb sdk always error</a></p>
  
  <p>The only message I get in logcat is: </p>
  
  <pre><code>10-26 15:29:16.425: E/Facebook(5342): java.net.UnknownHostException: graph.facebook.com
  </code></pre>
  
  <p>Do you guys have any ideas on how to solve this? I'm running the app on a stock Galaxy S2 device.</p>