0
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 ?

4

1 回答 1

0

据我所知,没有记录在案的方法,您可以使用https://developers.facebook.com/docs/reference/api/batch/(查看上传二进制数据部分),并输入您的 url 请求, 但我认为最好的方法是在本地下载文件并将其作为数据发布, 这样您就可以控制 url 内容

于 2013-08-04T12:16:33.817 回答