[英]Android - Error: com.facebook.FacebookException: Failed to get app name
I am using share dialog of facebook in order to share a link from my app to facebook. 我正在使用facebook的分享对话框,以便分享从我的应用程序到Facebook的链接。 But I keep getting error com.facebook.FacebookException: Failed to get app name.
但我不断收到错误com.facebook.FacebookException: Failed to get app name.
I already made my app status live and available to public. 我已经将我的应用状态现场直播并公开发布。
Any help is appreciated. 任何帮助表示赞赏。
I faced the same issue, this is how I solved it for me. 我遇到了同样的问题,这就是我为我解决的问题。 The solution was to add .setApplicationName("name of app") 解决方案是添加.setApplicationName(“app of app”)
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(activity)
.setLink("https://www.google.com")
.setApplicationName("name of app")
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());
您可以检查开发人员角色或禁用沙盒模式。
I faced same issue in android emulator. 我在android模拟器中遇到了同样的问题。
I restarted the emulator and works fine. 我重新启动了模拟器,工作正常。 Its may be because of network not available. 可能是因为网络不可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.