如何从 href="" 在移动设备上打开 Facebook 本机应用程序

Cla*_*nga 3 html android facebook ios

在移动设备上时,我想从网站打开 facebook 本机应用程序a href=""

我尝试了这个解决方案:

<a class="intent" target="_blank" href="fb://profile" data-scheme="fb://profile">facebook</a> 
Run Code Online (Sandbox Code Playgroud)

来自这个问题:/sf/ask/1810306571/

但它仍然在浏览器中打开。

ash*_*s86 5

这将打开您的应用程序(到您的个人资料页面)-

<h2><a href="fb://profile">FB Profile</a></h2>

希望能帮助到你。

(顺便说一句,这是经过尝试和测试的:))

更新到此 - 您要加载的页面 id 将是这样的 -

<h2><a href="fb://profile/655146487898613">FB Profile</a></h2>