通过网站链接在2018年打开Facebook应用的正确方法? [英] Correct way in 2018 to open Facebook app via website link?

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

问题描述

首先让我说一下,我已经研究了过去4个小时.从各种线程来看,链接到fb://page/PAGEID是通过网站链接打开Facebook应用程序的 OLD 方法,而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 App(如果已安装)中

现在的问题是,我已经在今天(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应用的正确方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆