可以在 iOS 13 中不使用 UIActivityViewController 将内容共享到特定的社交网络并直接打开所需的扩展吗?

It is possible to share content to specific social network without UIActivityViewController in iOS 13 and opens directly needed extension?

我们的设计团队决定使用自定义布局进行社交分享。例如,它将在社交网络(例如 Telegram 和 Twitter)上有 2 个按钮。在弃用社交框架 (iOS 11) 后,是否可以在 iOS 13 中直接分享到(例如 Telegram)?

我不想使用 UIActivityViewController。我需要在没有 UIActivityViewController 的情况下打开特定的社交扩展!

我检查过这个: Social framework is deprecated in iOS11

您只能对支持自定义 url 架构的应用程序执行此操作。

其中一些有官方 api,例如 instagram,有些可能有私人的,您也可以使用,但风险自负:创作者可以删除或更改此功能;还有一些 none.

但是您将无法像在 UIActivityViewController 中那样创建 post 或消息,只能传递其他应用程序将以某种方式处理的一些数据。