【问题标题】:How to open facebook native app on mobile from a href=""如何从 href="" 在移动设备上打开 facebook 原生应用
【发布时间】:2014-10-03 12:22:37
【问题描述】:

在移动设备上,我想用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

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

【问题讨论】:

    标签: android html ios facebook


    【解决方案1】:

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

    &lt;h2&gt;&lt;a href="fb://profile"&gt;FB Profile&lt;/a&gt;&lt;/h2&gt;

    希望对你有帮助。

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

    更新到这个 - 你要加载的页面 id 将是这个 -

    &lt;h2&gt;&lt;a href="fb://profile/655146487898613"&gt;FB Profile&lt;/a&gt;&lt;/h2&gt;

    【讨论】:

    • 但它并没有转到特定页面。你知道我怎样才能转到特定页面:fb://profile/BucharestInfo 不起作用。
    • 好的,如果我输入 ID(数字)而不是 BucharestInfo,它就可以工作。谢谢!
    • 那是因为你需要你的页面 ID,在你的情况下 -

      FB Profile

    • @ashjones86 如果未安装应用程序,则错误无法打开页面。什么是后备?
    • @ashjones86 对后备有什么想法吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-14
    • 1970-01-01
    • 1970-01-01
    • 2021-06-05
    • 2012-12-01
    • 1970-01-01
    相关资源
    最近更新 更多