我想将照片发布到我 friend 的墙上。
但是我登录了我的帐户,比如 tes [email protected] ,但现在我想发布到我的任何 friend 墙上。
我有我所有 friend 的 ID 和姓名。
登录我的帐户可以在 friend 墙上发布图片吗?如果是这样怎么可能?
最佳答案
try{
Bundle parameters = new Bundle();
JSONObject attachment = new JSONObject();
try {
attachment.put("message", "Messages");
attachment.put("name", "Get utellit to send messages like this!");
attachment.put("href", link);
} catch (JSONException e) {
}
parameters.putString("attachment", attachment.toString());
parameters.putString("message", "Text is lame. Listen up:");
parameters.putString("target_id", "XXXXX"); // target Id in which you need to Post
parameters.putString("method", "stream.publish");
String response = authenticatedFacebook.request(parameters);
Log.v("response", response);
}
catch(Exception e){}
关于android - Android 中好友墙上的 Facebook 帖子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5280720/