0

I am trying to share play store URL from my application with some my title and description but I an not getting content and title of application on shared data. Please can anybody help me out.

here is my code,

if (ShareDialog.canShow(ShareLinkContent.class)) {
    ShareLinkContent linkContent = new ShareLinkContent.Builder()
            .setContentTitle("My Application")
            .setContentDescription("Check out My Allpication.")
            .setContentUrl(Uri.parse("https://play.google.com/store/apps/details?id=com.facebook.katana"))
            .build();
    shareDialog.show(linkContent);
} else {
    Toast.makeText(ActivityOptions.this, "There is no Facebook application available.", Toast.LENGTH_LONG).show();
}
Halvor Holsten Strand
  • 19,829
  • 17
  • 83
  • 99
hpAndro
  • 178
  • 10

1 Answers1

0

Facebook does not "allow" text on sharing, only a link.

See more information on this question.

Community
  • 1
  • 1
Teo Inke
  • 5,928
  • 4
  • 38
  • 37