I am trying the ShareLinkContent using the ShareDialog from Facebook in my Android App. Following is the code snippet I have used. I have the content title and the description as it is needed for the post. It is fine while is show in the mobile while I try to post it.But When I see the post in the facebook it is different. Hope it is picking it from the google play store.
Please help to resolve this s that I can see the description and the tilte that I have set it in the share dialog
@Override
public void facebookShare(String msg) {
if (ShareDialog.canShow(ShareLinkContent.class)) {
ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setContentUrl(Uri.parse("https://play.google.com/store/apps/details?id=memory.game.collection.free"))
.setImageUrl(Uri.parse("http://i67.tinypic.com/svl2qt.png"))
.setContentTitle("Test ContentTitle")
.setContentDescription("Test content Description")
.build();
shareDialog.show(linkContent);
}
}


Facebook's publish_actions permissions reference states that it's not allowed to:
Pre-fill the user message parameter with any content the user didn't enter themselves, even if they can edit or delete that content before sharing. This applies to posts, comments, photo captions, and photo album captions.
I guess they decided to block the title and description parameters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With