在iOS上启动Facebook Messenger的自定义网址 [英] Custom URL to launch Facebook Messenger on iOS

查看:526
本文介绍了在iOS上启动Facebook Messenger的自定义网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何启动FaceBook Messenger(如果已安装)与组合Windows到特定的FB ID。

How can I launch FaceBook Messenger (if installed) with a compose Windows to a specific FB ID.

如果没有安装Messenger,我们可以启动FaceBook应用程序将组合窗口打开到特定的FB ID。

If messenger is not installed, can we launch FaceBook app and have the compose Windows open to a specific FB ID.

在很少的情况下,如果没有安装Facebook应用程序,我们可以通过撰写窗口启动移动Safari吗?

In the rare instance if no Facebook apps are installed, can we launch mobile Safari with the compose window?

推荐答案

URL方案是 fb-messenger:// user-thread / {user-id} 。我使用 fb-messenger URL方案作为查看器构建我的应用程序,并在 UIApplication 委托中捕获URL。 user-id 参数是长整数,如 https://developers.facebook.com/docs/graph-api/reference/user/

The URL scheme is fb-messenger://user-thread/{user-id}. I just build my app with fb-messenger URL scheme as Viewer and trapped the URL on the UIApplication delegate. The user-id parameter is long integer one, as in https://developers.facebook.com/docs/graph-api/reference/user/

这篇关于在iOS上启动Facebook Messenger的自定义网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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