17

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
  • 337
  • 1
  • 2
  • 11

6 Answers6

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

Marvin Ruciński
  • 351
  • 3
  • 12
  • 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
  • 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 Dec 05 '22 at 14:07
  • getting the pageid was another story! I just could not find it in me page anywhere. About/More links etc.. i could not find it anywhere. i had to view page source and search for "__user" and i found it. i also tried searching for "1000" as all page id's seem to start with 1000 but there were to many results. – pinman Dec 05 '22 at 14:10
10

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
  • 337
  • 1
  • 2
  • 11
  • The IOS form it's not working. Do we have more information on that? – Dagosi Nov 29 '18 at 16:56
  • For iOS you can use fb://profile?id= (even for pages) – kappatech May 28 '21 at 13:22
  • Does his not work anymore ? `fb://dialog/share?app_id=123&href=http://test-url.com` – anjanesh Jul 05 '22 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 Dec 05 '22 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)

Pranav Karnik
  • 3,318
  • 3
  • 35
  • 47
MStoner
  • 730
  • 4
  • 10
  • 1
    none of these solutions opens a fb app on android in 2019 – Darksymphony Nov 10 '19 at 14:09
  • fb://page/PAGEID on my android 8 device still brings you to the page in the browser – MStoner Nov 11 '19 at 12:51
  • yes, the same here. It opens fb in browser, not the fb app – Darksymphony Nov 11 '19 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. – Darksymphony Nov 17 '19 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 Dec 05 '22 at 14:05
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
  • 346
  • 1
  • 6
  • 17
1

fb://profile/yournumericid Works for iOS only

Ajimi Mol
  • 29
  • 4
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
Ethan
  • 87
  • 1
  • 7