我正在尝试使用 android facebook sdk 发布视频。通过很长一段时间。onComplete 方法已被激活。但它无法在 Facebook 中显示。我还添加了权限{user_videos,publish_stream,read_stream etc..}
public void uploadVideo(String dataPath,String VideoDescription)
{
InputStream in = null ;
byte[] data ;
Bundle param ;
try{
in = new FileInputStream(dataPath);
Log.e(tag, "start reading..");
}catch(Exception e)
{
Log.e(tag, "coudlnt find.");
e.printStackTrace();
}
data = readBytes(in);
param = new Bundle();
param.putString("name", "adfasdfasdf");
param.putString("message", "sdfsdf");
param.putString("filename", "MOV008.mp4");
param.putString("description", VideoDescription);
param.putByteArray("video", data);
Log.e(tag, "upload");
Utility.mAsyncRunner.request("me/videos", param,"POST",new fbRequestListener(),null);
}