在移动设备上时,我想使用a href=""
从网站打开Facebook本机应用程序
我尝试了以下解决方案:
<a class="intent" target="_blank" href="fb://profile" data-scheme="fb://profile">facebook</a>
来自这个问题:https://stackoverflow.com/questions/25861522/how-to-open-instagram-native-app-from-link-in-html
但是它仍然在浏览器中打开。
最佳答案
这将打开您的应用程序(进入您的个人资料页面)-<h2><a href="fb://profile">FB Profile</a></h2>
希望能帮助到你。
(这是经过反复尝试和测试的:))
更新为此-您要加载的页面ID将为-<h2><a href="fb://profile/655146487898613">FB Profile</a></h2>