本文介绍了Android的Facebook分享说:"未找到"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图提供在Facebook功能的共享一个链接到Google Play。它除了1期运作良好。共享页面上的主标题写着未找到
I am trying to provide a share on facebook feature with a link to google play. Its working well except for 1 issue. The main title on the share page says "Not Found"
下面是我的code:
if (FacebookDialog.canPresentShareDialog(this,
FacebookDialog.ShareDialogFeature.SHARE_DIALOG)) {
// Publish the post using the Share Dialog
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setDescription(getString(R.string.facebook_description))
.setPicture(getString(R.string.facebook_picture))
.setLink(getString(R.string.url_google_play) + getPackageName())
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());
}
和这里的结果是:
我首先想到我需要setCaption,但这似乎打破东西 - 我不明白的链接或图标在所有
I first thought I needed to setCaption, but this seems to break things - I don't get the link or icon at all!
有我错过了什么?我已经通过文档一遍又一遍。
Have I missed something? I have been through the docs over and over.
感谢
推荐答案
尝试添加
.setApplicationName().setName(测试)
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setApplicationName("<app name>")
.setName("test:")
.setCaption(caption)
.setDescription(getString(R.string.facebook_description))
.setPicture(getString(R.string.facebook_picture))
.setLink(getString(R.string.url_google_play) + getPackageName())
.build();
这篇关于Android的Facebook分享说:&QUOT;未找到&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!