facebook Share image Url along with link in android

Viewed 998

I want to share image URL along with the link. Previously I used the shareLinkContent for sharing the image and URL but it is not working now.

                        shareDialog = new ShareDialog(activity);

                        ShareLinkContent content = new ShareLinkContent.Builder()

                                .setImageUrl(Uri.parse(image)).setContentUrl(Uri.parse(shareUrl))

                                .build();
                        shareDialog.show(content);

this is my code it shares only content Url not sharing the image Url.Is there any other way to share the link along with the image to the Facebook.Please help me to resolve this issue.

2 Answers
Related