Reputation: 357
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?
Upvotes: 18
Views: 95190
Reputation: 127
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
Upvotes: 1
Reputation: 366
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.
Upvotes: 2
Reputation: 351
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
Upvotes: 31
Reputation: 750
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)
Upvotes: 6
Reputation: 357
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.
Upvotes: 11