开发者

Error while i post on friends wall

while i am using this code for post, i got error on calling request.. if I fix this the defaul开发者_如何学Pythont AsynchronousRunner code in face book will be changed.

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());**
}


Here is the code..i put the stream.publish method inside the request function..it works well..

 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);**
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜