Pranesh Sahu Pranesh Sahu - 2 years ago 88
Android Question

Facing Issue while Sharing Video using Facebook SDK in android

I tried to share images using facebook sdk in android app - works like charm but when i tried to share video nothing happens.

The following is the code that i'm using for sharing video content:

public void onClick(View v) {
ShareVideo shareVideo1= new ShareVideo.Builder()

ShareVideoContent shareContent = new ShareVideoContent.Builder()
shareButton.setShareContent(shareContent);, ShareDialog.Mode.AUTOMATIC);



The method is getting called on clicking share button but no dialog box appears for sharing.Please give me your valuable suggestion where i'm commiting mistake.

Answer Source

you are trying to share a link but you are using the code to share a video which is on your device.

Please have a look at

and try to use the code for sharing a link

ShareLinkContent content = new ShareLinkContent.Builder()

Please take into account that you have to use the Facebook Share Button. Please see at the bottom of

ShareButton shareButton = (ShareButton)findViewById(;

You cannot use the standard Android Button

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download