将图像文件发送给我的朋友列表中的特定朋友

问题描述

| 我正在做一个示例Facebook应用程序,如果有解决方案,我会将图像文件发布给我的朋友列表中的特定朋友...     

解决方法

这是代码..i将stream.publish方法放在请求函数中..它很好用..
 protected void postToWall(String temp2) {
    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);**
}
    

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...