在 iOS 上启动 Facebook Messenger 的自定义 URL [英] Custom URL to launch Facebook Messenger on iOS
问题描述
如何使用将 Windows 组合到特定的 FB ID 来启动 FaceBook Messenger(如果已安装).
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?
推荐答案
sample ,在 ios 中对我有用
sample ,It's work for me in ios
let msgUrl = URL(string: "http://m.me/{PAGE_NAME}")
UIApplication.shared.openURL(msgUrl)
dev facebook 文档中的参考:https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links/
reference in document of dev facebook : https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links/
这篇关于在 iOS 上启动 Facebook Messenger 的自定义 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!