如何将图片和视频从相机或图库上传到android中的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());
提前致谢
答案 0 :(得分:1)
试一试 -
上传图片,
Bundle params = new Bundle();
params.putByteArray("picture", <image in bytes>);
params.putString("message", "Have fun");
mAsyncRunner.request("me/photos", params, "POST", new SampleUploadListener());
上传视频,
Bundle params = new Bundle();
param.putString("filename", <dataName>);
param.putByteArray("video", <data in bytes>);
mAsyncRunner.request("me/videos", param, "POST", new SampleUploadListener());