Request request = Request.newUploadPhotoRequest(Session.getActiveSession(),imageToBeUploaded,new Request.Callback() {
@Override
public void onCompleted(Response response) {
showPublishResult(getString(R.string.photo_post),response.getGraphObject(), response.getError());
}
});
ATM I am uploading to facebook by passing a bitmap. But i have to upload photos from my website. So i download the image in AsyncTask and pass it here
Is there any method to upload via url using non depreciated methods ?