2

我使用下面的代码正确地将照片发布到我的默认相册。有没有办法为那张照片添加评论/标题?谢谢。

Bitmap sourceBitmap = BitmapFactory.decodeFile(bitmapPath);
                    Request request = Request.newUploadPhotoRequest(session, sourceBitmap, new Callback() {

                        @Override
                        public void onCompleted(Response response) {
                        }
                    });
                    request.executeAsync();
4

1 回答 1

5

执行以下操作:

Request request = Request.newUploadPhotoRequest(session, sourceBitmap, new Callback() {...});
Bundle params = request.getParameters();
params.putString("message", "Your Caption Here");
request.setParameters(params);
request.executeAsync();
于 2013-11-08T17:51:02.133 回答