我在朋友墙上发帖时出错

时间:2011-05-31 08:25:51

标签: android

当我使用此代码进行发布时,我在调用请求时遇到错误..如果我修复此问题,则会更改面部图书中的默认AsynchronousRunner代码。

protected void postToWall(String temp2) {
   System.out.println("<<inside the post method>>");
   Bundle params = new Bundle();
   params.putString("message", _messageInput.getText().toString()"some text Here);
   params.putString("caption", "{*actor*} just posted a secret message.");
   params.putString("description","A secret message is waiting for you.  Click the link to    decode it.");
   params.putString("name", "A Secret Message For You");
 params.putString("picture","http://www.kxminteractive.com/Content/images/app_logos/secretMessage.png");
  params.putString("link", "http://www.kxminteractive.com/decrypt/");
  **mAsyncRunner.request(((temp2 == null) ? "me" : temp2) + "/feed",
                params, "POST", new WallPostRequestListener());**
}

1 个答案:

答案 0 :(得分:0)

这是code..i将 stream.publish 方法放在请求函数中..它运行良好..

 protected void postToWall(String temp2) {
   System.out.println("<<inside the post method>>");
   Bundle params = new Bundle();
   params.putString("message", _messageInput.getText().toString()"some text Here);
   params.putString("caption", "{*actor*} just posted a secret message.");
   params.putString("description","A secret message is waiting for you.  Click the link to    decode it.");
   params.putString("name", "A Secret Message For You");
 params.putString("picture","http://www.kxminteractive.com/Content/images/app_logos/secretMessage.png");
  params.putString("link", "http://www.kxminteractive.com/decrypt/");
  **mAsyncRunner.request(((temp2 == null) ? "me" : temp2) + "/feed",
                params, "POST", new WallPostRequestListener(),stream.publish);**
}