14

Let me say first that I've researched this for the past 4 hours. From various threads, I have seen that linking to fb://page/PAGEID is the OLD way of opening the Facebook app via a website link and that fb://facewebmodal/f?href=FACEBOOKURL is the new way.

As a reference: Open Facebook Page in Facebook App (if installed) on Android

The problem now is, I've tested both of them on iOS and Android today (June 04, 2018) and the one that works is the supposedly old way: fb://page/PAGEID. Did Facebook change this at some point again? I'm using the absolutely latest version of the Facebook app.

What is the correct way to do this in 2018?

Mike M
  • 297
  • 1
  • 2
  • 10

5 Answers5

28

Now it's changed to:

For iOS: fb://profile/PAGEID

For Android: fb://page/PAGEID

PAGEID is the numeric pageid that the page owner can see in the about box in facebook

  • 4
    1000 ups. Took me ages to find this. Also I used https://findmyfbid.com to get the fb ids I needed. Not sure if there is another way. – MadMac Aug 26 '19 at 20:27
  • There's no numeric ID in the owner's About tab; at least, not as of 2020. – FractalBob Mar 14 '20 at 11:22
  • 1
    Thank you!!! Terrible why facebook is not consistent? I do not understand why iOS need "profile" and Android needs "page"? We have to add stupid hacks into code. – mikep Feb 15 '21 at 08:43
  • This worked for me in 2021 to get the page ID: https://www.facebook.com/help/1503421039731588 – M Katz Mar 21 '21 at 01:45
9

I figured it out, hope it helps someone else.

If the device is Android, use:

fb://facewebmodal/

And if it's iOS, use:

fb://page/PAGEID

If you do it automatically you need to detect the device first and then redirect to the appropriate link.

Mike M
  • 297
  • 1
  • 2
  • 10
6

Beware! I'm testing on android in September 2018:

fb://facewebmodal/f?href=FACEBOOKURL works, but doesn't display the page correctly - the header image is missed off and you end up in "about" with no way to like the app.

fb://page/PAGEID works fine in android and displays the page as intended. (for clarity this is the numeric pageid that the page owner can see in the about box in facebook)

Pranav Karnik
  • 3,008
  • 2
  • 33
  • 46
MStoner
  • 665
  • 4
  • 7
1

So I figure my solution worked best for my scenario.

By setting the target to "_top" the phone shows the pop up to choose the app that you would like to open the link on.

Emad
  • 326
  • 1
  • 4
  • 16
1

fb://profile/yournumericid Works for iOS only

Ajimi Mol
  • 21
  • 4