我在Request.executeUploadPhotoRequestAsync中有此代码和此错误。
我能做什么,谢谢
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.android_logo);
Request.executeUploadPhotoRequestAsync(Session.getActiveSession(), bitmap, new Callback(){
@Override
public void onCompleted(Response response) {
if(response.getError() == null){
Toast.makeText(getApplicationContext(), "Upload photo is completed", Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(getApplicationContext(), response.getError().getErrorMessage(), Toast.LENGTH_SHORT).show();
}
}
});