Claudiu Creanga Claudiu Creanga - 4 months ago 49x
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.


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>