简体   繁体   English

Facebook ShareDialog-从Android APP发布时未显示名称和描述

[英]Facebook ShareDialog - Name and Description not shown when posted from Android APP

I am trying to integrate the Facebook with my Android App. 我正在尝试将Facebook与我的Android应用程序集成。 I am using ShareDialog for sharing a short message using the below statements. 我正在使用ShareDialog使用以下语句共享短消息。 The variable "message" the short information on game statistics. 变量“ message”是关于游戏统计信息的简短信息。 When I tried to share this particular message I am getting only the image and the Facebook app name. 当我尝试共享此特定消息时,我仅获得图像和Facebook应用程序名称。 So finally I could see the image with the link and the Facebook app name but not with the values from (.setName / .setDescription). 所以最后我可以看到带有链接和Facebook应用程序名称的图像,但是看不到(.setName / .setDescription)中的值。 What I am supposed to do to get those details as well. 我应该怎么做才能获得这些细节。

return new FacebookDialog.ShareDialogBuilder(this)
        .setPicture("http://i61.tinypic.com/jjbslv.png")
        .setName("Memory Game" + message)
        .setDescription(message) 
        .setLink("https://play.google.com/store/apps/details?id=kids.animals.fruits.objects.brain.puzzle.memory.game.free")
        ;  

Answer Source: Android Facebook SDK FacebookDialog.shareDialogBuilder doesn't show my description 答案来源: Android Facebook SDK FacebookDialog.shareDialogBu​​ilder没有显示我的描述

Replacing playstore's like with website's link solved it for me too. 用网站的链接代替playstore之类也为我解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM