Implementing Share on iOS 11

Asked 2 years ago, Updated 2 years ago, 83 views

iOS 11 no longer has the ability to log in to FaceBook and Twitter, and share functionality using SLComposeViewController is no longer implemented.I would appreciate it if you could tell me how to share Facebook and Twitter without using the SLComposeViewController.

swift ios swift3

2022-09-29 22:35

1 Answers

First,

Share with SLComposeViewController is no longer implemented.

It is not very accurate that
If you have the official Twitter or Facebook app installed, it seems that you can also post using the SLComposeViewController on iOS 11.

(*However, as of iOS 11beta8, when I try to post on Twitter, I get an alert saying "I don't have a Twitter account".If you log in on the Twitter app, you can post even if you get an alert.)

The following options are available for posting when the official app is not installed.

  • You can determine whether the app is installed or not by checking "twitter://" or "fb://" with the UIAapplication canOpenURL.

Both methods 1 and 2 require application registration on the Facebook Developer Page.

Please refer to it.


2022-09-29 22:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.