0
我正在使用ShareDialog共享Facebook墙上的链接。无论设备上是否安装了Facebook本机应用程序,ShareDialog.canShow(ShareLinkContent.class)
总是返回true。
这是预期的行为还是我错过了某些东西?Facebook Android SDK ShareDialog.canShow(ShareLinkContent.class)总是返回true
我正在使用ShareDialog共享Facebook墙上的链接。无论设备上是否安装了Facebook本机应用程序,ShareDialog.canShow(ShareLinkContent.class)
总是返回true。
这是预期的行为还是我错过了某些东西?Facebook Android SDK ShareDialog.canShow(ShareLinkContent.class)总是返回true
它返回true,因为总会有一个可以共享链接的对话框。
如果安装了本机应用程序,它将切换到本机应用程序。如果本机应用程序不在那里,它会打开一个Web对话框。
有些内容类型(如照片)无法回退到Web对话框,在这种情况下,canShow将返回false。