在移动设备上,我想使用 a href=""
我试过这个解决方案:
<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>
关于android - 如何从 href =""在移动设备上打开 facebook native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26178853/