1

My question is simple, have found similar questions but none of them worked for me.

I want my a href when clickable on mobile to instantly open facebook application and redirect it to specific page.

<a class="mobile" href="fb://https://www.facebook.com/fcbarcelona">mobile</a>

Problem is, when i click on this a href it opens facebook app but stays on news feed. Anyone experienced this and if solved it, how?

Kalnode
  • 9,386
  • 3
  • 34
  • 62
Blazo
  • 95
  • 1
  • 2
  • 13
  • On first glance, you specify two protocols in your href: fb:// and https://. There should only be one. I'm pretty sure this will cause a problem! – Kalnode Aug 18 '18 at 04:46

1 Answers1

2

The correct way to open it in Android is:

<a class="mobile" href="fb://facewebmodal/f?href=https://it-it.facebook.com/fcbarcelona/">mobile</a>

In iOS fb://page/PAGEID is needed instead, so you have to check in advance which operating system is running.

You can have a look at this post for clarification.

Davide Cenedese
  • 110
  • 1
  • 2
  • 9