public static GraphRequest newUploadVideoRequest(AccessToken accessToken,File file,Callback callback) throws FileNotFoundException {
  ParcelFileDescriptor descriptor=ParcelFileDescriptor.open(file,ParcelFileDescriptor.MODE_READ_ONLY);
  Bundle parameters=new Bundle(1);
  parameters.putParcelable(file.getName(),descriptor);
  return new GraphRequest(accessToken,MY_VIDEOS,parameters,HttpMethod.POST,callback);
}

public static GraphRequest newUploadVideoRequest ( AccessToken accessToken , File file , Callback callback ) throws FileNotFoundException { ParcelFileDescriptor descriptor = ParcelFileDescriptor . open ( file , ParcelFileDescriptor . MODE_READ_ONLY ) ; Bundle parameters = new Bundle ( 1 ) ; parameters . putParcelable ( file . getName ( ) , descriptor ) ; return new GraphRequest ( accessToken , MY_VIDEOS , parameters , HttpMethod . POST , callback ) ; }
creates a new request configured to upload a video to the user ' s default video album . the video will be read from the specified file .
