Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Description not shown in Facebook ShareDialog

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);
    }

}

While Posting from Mobile Device

enter image description here

The Post shared in Facebook

enter image description here

like image 322
iappmaker Avatar asked Feb 23 '26 01:02

iappmaker


1 Answers

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.

like image 180
grebulon Avatar answered Feb 25 '26 14:02

grebulon