android facebook sdk v4从网页获取标题和描述

时间:2015-05-12 18:53:57

标签: android facebook facebook-graph-api

我使用以下代码从Facebook分享:

        if (ShareDialog.canShow(ShareLinkContent.class)) {
        ShareLinkContent linkContent = new ShareLinkContent.Builder()
                .setContentUrl(Uri.parse("https://play.google.com/store/apps/details?id=com.taxipartner"))
                .setImageUrl(Uri.parse("http://s11.postimg.org/6d64we9nn/ic_launcher.png"))
                .setContentTitle("Join My Taxi")
                .setContentDescription(description)
                .build();



        shareDialog.show(linkContent);

    }

当我使用该特定链接(来自谷歌播放)时,它会自动填充内容和标题,而不是我配置的内容..

使用其他链接网站(例如https:/developers.facebook.com)时可以。

我看了that question,他们说它需要元数据中的desc ...我怎么能覆盖它?

1 个答案:

答案 0 :(得分:0)

这基于本机应用如何在帖子中呈现应用商店链接。有一个关于此的错误报告,并且是设计出来的:

https://developers.facebook.com/bugs/626642064087460/

底线是针对应用商店链接(iOS / Android),您的元数据不会显示,而是以不同的方式呈现。这是设计的。