18

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?

6 Answers 6

31

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

6
  • 4
    1000 ups. Took me ages to find this. Also I used findmyfbid.com to get the fb ids I needed. Not sure if there is another way.
    – MadMac
    Commented Aug 26, 2019 at 20:27
  • There's no numeric ID in the owner's About tab; at least, not as of 2020.
    – FractalBob
    Commented Mar 14, 2020 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
    Commented Feb 15, 2021 at 8:43
  • This worked for me in 2021 to get the page ID: facebook.com/help/1503421039731588
    – M Katz
    Commented Mar 21, 2021 at 1:45
  • both android and ios accept fb://profile/111111 in 2022. at least thats my experience on android in 2022. However if facebook is not installed on the device there is no fallback to the browser.
    – pinman
    Commented Dec 5, 2022 at 14:07
11

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.

4
  • The IOS form it's not working. Do we have more information on that?
    – Dagosi
    Commented Nov 29, 2018 at 16:56
  • For iOS you can use fb://profile?id=<numerid_id_here> (even for pages)
    – kappatech
    Commented May 28, 2021 at 13:22
  • Does his not work anymore ? fb://dialog/share?app_id=123&href=http://test-url.com
    – anjanesh
    Commented Jul 5, 2022 at 11:49
  • both android and ios accept fb://profile/111111 in 2022. at least thats my experience on android in 2022. However if facebook is not installed on the device there is no fallback to the browser.
    – pinman
    Commented Dec 5, 2022 at 14:06
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)

5
  • 1
    none of these solutions opens a fb app on android in 2019 Commented Nov 10, 2019 at 14:09
  • fb://page/PAGEID on my android 8 device still brings you to the page in the browser
    – MStoner
    Commented Nov 11, 2019 at 12:51
  • yes, the same here. It opens fb in browser, not the fb app Commented Nov 11, 2019 at 18:36
  • 1
    Strange thing is, if your FB Url is for some events, e.g. https:/www.facebook.com/events/... so this will bring an option to open it in app or browser. But if you have just a FB page Url, it will directly open the browser. Commented Nov 17, 2019 at 21:32
  • both android and ios now accept fb://profile/111111 in 2022. at least thats my experience on android in 2022. However if facebook is not installed on the device there is no fallback to the browser.
    – pinman
    Commented Dec 5, 2022 at 14:05
2

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.

1
  • I'm using some AR low-code builder and it wouldn't let me put in anything that wasn't http/s so this actually was a pretty good solution for me too... thx!
    – Rikon
    Commented Nov 5, 2023 at 13:07
1

fb://profile/yournumericid Works for iOS only

4
  • Please consider formatting your answer and add link to documentation that explain it.
    – ponsfrilus
    Commented Oct 3, 2020 at 9:16
  • Forgive me if I seem stupid, but should 'profile' be changed to the page name? e.g. fb://bbcnews/123456789 or fb://profile/123456789 ? Thanks.
    – Gillian
    Commented Apr 6, 2021 at 10:36
  • @Gillian it has to be fb://profile/123456789
    – Ajimi Mol
    Commented Apr 13, 2021 at 6:48
  • it seems that both iphone and android use fb://profile/1111 in 2022. at least thats what's my experience of android today.
    – pinman
    Commented Dec 5, 2022 at 13:44
1

In 2022, the elegant ways are:

Android:

  • intent://page/PAGEID#Intent;scheme=fb;package=com.facebook.katana;end

  • fb://page/PAGEID

iOS:

  • fb://page/?id=PAGEID

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.