我正在使用facebook库到Facebook墙进行图像共享,这是我的代码
/**
* Function to post to facebook wall
* */
public void postToWall() {
// post on user's wall.
Bundle params = new Bundle();
params.putString("name", "name");
params.putString("caption", "caption");
params.putString("Discription", "Discription");
params.putString("link", "https://play.google.com");
params.putString("picture", "http://s3.buysellads.com/1266299/271750-1433251436.jpg");
facebook.dialog(this, "feed", params, new DialogListener() {
@Override
public void onFacebookError(FacebookError e) {
}
@Override
public void onError(DialogError e) {
}
@Override
public void onComplete(Bundle values) {
}
@Override
public void onCancel() {
}
});
}
这里我使用" http://s3.buysellads.com/1266299/271750-1433251436.jpg"张贴图片但我需要从drawable文件夹或从SD卡发布图像。请帮我 谢谢......