【发布时间】:2019-10-11 02:12:12
【问题描述】:
我有一个 Android 应用程序正在尝试打开 Facebook 群组页面。 我遵循了一些我找到的建议,并从该组网页的来源获得了 al:android:url URL,类似于:fb://group/{group id}。
因此,我可以使用以下方法在 Facebook 的应用中打开群组页面:
try {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, url);
startActivity(browserIntent);
} catch (Exception e) {
// fallback to opening the original group URL in a browser, i.e. https://www.facebook.com/groups/{group name}/
}
这适用于标准 Facebook 应用程序。
但是,它不适用于 Facebook Lite 应用! 使用原始 URL(在回退块中)将启动 Facebook Lite 应用,但不会导航到群组页面。
有没有办法在 Facebook Lite 应用程序中深度链接到群组页面?
【问题讨论】:
标签: java android deep-linking facebook-apps