描述未显示在Facebook ShareDialog中 [英] Description not shown in Facebook ShareDialog

查看:100
本文介绍了描述未显示在Facebook ShareDialog中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Android应用程序中Facebook的ShareDialog尝试使用ShareLinkContent.以下是我使用的代码段.我有内容标题和说明,因为它是帖子所需要的.当我尝试发布它时,可以在移动设备中显示它.但是当我在facebook中看到该消息时,情况就不同了.希望它是从Google Play商店中挑选的.

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的

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.

这篇关于描述未显示在Facebook ShareDialog中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆