Correct way in 2018 to open Facebook app via website link?

前端 未结 5 661
离开以前
离开以前 2020-12-06 06:13

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

相关标签:
5条回答
  • 2020-12-06 06:51

    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

    0 讨论(0)
  • 2020-12-06 06:57

    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.

    0 讨论(0)
  • 2020-12-06 07:05

    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.

    0 讨论(0)
  • 2020-12-06 07:12

    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)

    0 讨论(0)
  • 2020-12-06 07:13

    fb://profile/yournumericid Works for iOS only

    0 讨论(0)
提交回复
热议问题