本文介绍了2018 年通过网站链接打开 Facebook 应用程序的正确方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先让我说我在过去的 4 个小时里研究了这个.从各个线程中,我看到链接到 fb://page/PAGEID 是通过网站链接打开 Facebook 应用程序的方式,而 fb://facewebmodal/f?href=FACEBOOKURL 是新的方式.

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.

作为参考:打开 Facebook 页面在 Android 上的 Facebook 应用程序(如果已安装)中

现在的问题是,我今天(2018 年 6 月 4 日)已经在 iOS 和 Android 上对它们进行了测试,其中有效的方法是所谓的旧方法:fb://page/PAGEID.Facebook 是否在某个时候再次改变了这一点?我使用的是绝对最新版本的 Facebook 应用.

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.

2018 年正确的做法是什么?

What is the correct way to do this in 2018?

推荐答案

我想通了,希望能帮到别人.

I figured it out, hope it helps someone else.

如果设备是 Android,请使用:

If the device is Android, use:

fb://facewebmodal/

如果是 iOS,请使用:

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.

这篇关于2018 年通过网站链接打开 Facebook 应用程序的正确方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 07:04