0

I have a link to my facebook, on my website, which opens in the phone's browser.

I would like it to open in the facebook app by default, if the app is installed.

Is this possible?

LeBlaireau
  • 17,133
  • 33
  • 112
  • 192

1 Answers1

1

In general it may not be possible, check this thread: https://android.stackexchange.com/questions/37549/force-link-to-open-in-app-not-my-default-browser

But if you really want to do it, you can follow the same principle as it is proposed on this URL: Open Facebook page from Android app?

In short, try to build an URL of form: fb://profile/pageID. The point of building such URL is because of IntentFilter defined in Facebook app. I am not sure if it will work, but if there is no Facebook app installed this will probably fail.

That should work when you click on a link in browser. It may depend on a browser though.

Community
  • 1
  • 1
urgas9
  • 806
  • 9
  • 22