how to upload videofiles on facebook wall from sdcard in android
<p>i am making a application of android .In which i want to share video on Facebook wall.But it gives error.my code is here.and this video takes from a perticular folder in sdcard.So please suggest me.Thanks in advance...</p>

<pre><code>Intent sharingIntent = new Intent(Intent.ACTION_SEND);
        Uri screenshotUri = Uri.parse("/mnt/sdcard/FreedomMic/test/v1327056571768.3gpp");

        sharingIntent.setType("video/3gpp");
        sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
        startActivity(Intent.createChooser(sharingIntent, "v1327056571768.3gpp"));
</code></pre>

<p>But  It show this error..</p>

<pre><code>E/AndroidRuntime(14827): FATAL EXCEPTION: main
E/AndroidRuntime(14827): java.lang.NullPointerException
E/AndroidRuntime(14827):    at com.facebook.katana.service.method.VideoUpload.getRealPathFromURI(VideoUpload.java:144)
E/AndroidRuntime(14827):    at com.facebook.katana.service.method.VideoUpload.start(VideoUpload.java:165)
E/AndroidRuntime(14827):    at com.facebook.katana.binding.AppSession.postToService(AppSession.java:4212)
E/AndroidRuntime(14827):    at com.facebook.katana.service.method.VideoUpload.RequestVideoUpload(VideoUpload.java:73)
E/AndroidRuntime(14827):    at com.facebook.katana.activity.media.UploadVideoActivity.upload(UploadVideoActivity.java:209)
E/AndroidRuntime(14827):    at com.facebook.katana.activity.media.UploadVideoActivity.onClick(UploadVideoActivity.java:169)
E/AndroidRuntime(14827):    at android.view.View.performClick(View.java:2485)
E/AndroidRuntime(14827):    at android.view.View$PerformClick.run(View.java:9080)
E/AndroidRuntime(14827):    at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime(14827):    at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime(14827):    at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(14827):    at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(14827):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(14827):    at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(14827):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(14827):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(14827):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  115):   Force finishing activity com.facebook.katana/.activity.media.UploadVideoActivity
W/ActivityManager(  115): Activity pause timeout for HistoryRecord{40718f30 com.facebook.katana/.activity.media.UploadVideoActivity}
</code></pre>
