title: Posting to a user's wall using the POST request and graph API
body: <p>I am new to facebook app development and i have been trying to post a simple message on the wall of the user.i have managed to get the access token .Here is the code for the POST request.I am using java servlets</p>
  
  <pre><code>  String data = URLEncoder.encode("access_token", "UTF-8") + "=" + URLEncoder.encode(accessToken, "UTF-8");
  data += "&amp;" + URLEncoder.encode("message", "UTF-8") + "=" + URLEncoder.encode("finally", "UTF-8");
  out.println("data is\n"+data);
  // Send data
  String u="https://graph.facebook.com/me/feed";
  URL urls = new URL(u);
  URLConnection conn = url.openConnection();
  conn.setDoOutput(true);
  OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
  wr.write(data);
  wr.flush();
  </code></pre>
  
  <p>Well this code is not working and i can not post on the wall.Any suggestion as to where i might be wrong?</p>