Open Facebook App

                                                        Open Facebook App
Open Facebook App
This site uses cookies to deliver our services and to show you relevant ads and job listings. By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.

Join Stack Overflow to learn, share knowledge, and build your career.
Correct way in 2018 to open Facebook app via website link?
Ask Question
up vote 2 down vote favorite
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?
I figured it out, hope it helps someone else.
If the device is Android, use:
If you do it automatically you need to detect the device first and then redirect to the appropriate link.

Related Posts:
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)
Open Facebook App Open Facebook App Reviewed by Efukikata Efet on 10:10 Rating: 5

No comments