Claudiu Creanga Claudiu Creanga - 1 year ago 251
Android Question

How to open facebook native app on mobile from a href=""

When on mobile, I want to open the facebook native app from website with

a href=""

I tried this solution:

<a class="intent" target="_blank" href="fb://profile" data-scheme="fb://profile">facebook</a>

From this question:how to open instagram native app from link in html?

But it still opens up in the browser.

Answer Source

This will open your app (to your profile page) -

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

Hope it helps.

(This is tried and tested btw :) )

Update to this - your page id to load will be this -

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download