Android 从相机上传图片和视频

Android 从相机上传图片和视频,android,Android,在安卓系统中,如何将照片和视频从相机或多媒体资料上传到fb帐户? 你能给我一些解决这个问题的建议吗。 我可以使用下面的代码在fb账户中发布状态 AsyncFacebookRunner mAsyncFbRunner = new AsyncFacebookRunner(mFacebook); Bundle params = new Bundle(); params.putString("message", review); params

在安卓系统中,如何将照片和视频从相机或多媒体资料上传到fb帐户? 你能给我一些解决这个问题的建议吗。 我可以使用下面的代码在fb账户中发布状态

AsyncFacebookRunner mAsyncFbRunner = new AsyncFacebookRunner(mFacebook);
        Bundle params = new Bundle();
        params.putString("message", review);        
        params.putString("picture", "http://twitpic.com/show/thumb/6hqd44");
        mAsyncFbRunner.request("me/feed", params, "POST",
                new WallPostListener());
提前谢谢

试试看-

上传图片

 Bundle params = new Bundle();

 params.putByteArray("picture", <image in bytes>);
 params.putString("message", "Have fun");

 mAsyncRunner.request("me/photos", params, "POST", new SampleUploadListener()); 
Bundle参数=新Bundle();
putByteArray参数(“图片”);
参数putString(“消息”,“玩得开心”);
request(“me/photos”,params,“POST”,newsampleuploadlistener());
上传视频

Bundle params = new Bundle();

param.putString("filename", <dataName>);
param.putByteArray("video", <data in bytes>);

 mAsyncRunner.request("me/videos", param, "POST", new SampleUploadListener()); 
Bundle参数=新Bundle();
参数putString(“文件名”);
参数putByteArray(“视频”);
request(“me/videos”,param,“POST”,newsampleuploadlistener());