I would like to ask for clarification regarding how Apps should handle Twitter integration from iOS 11 onwards.
The official Twitter documentation here states that:
iOS 11 no longer supports using Twitter through the built-in social framework. Instead, you can use Twitter Kit 3 to Tweet, log in users, and use the Twitter API.
And the official Apple documentation states in the release notes the following:
Social accounts have been removed from Settings in iOS 11. Third-party apps no longer have access to those signed-in accounts. (31687059)
My issue right now is trying to tie these 2 together when it comes to SHARING. I understand that login, accessing tweets and other stuff requires the Twitter SDK, but for simple sharing what changes?
Does this mean that we canât use âSLComposeViewControllerâ to present the Tweet View?
What about sharing through the use of an âUIActivityViewControllerâ?
The current behavior iâve noticed (and iâll include Facebook as a comparison) is the following:
SLComposeViewController
Facebook App not installed â> Silently Fails
Twitter App not installed â> Silently Fails
Facebook App installed â> Facebook share view is shown.
Twitter App installed â> Twitter share view is shown, but the following message is shown, âNo Twitter Accountâ âThere are no Twitter accounts configured. You can add or create a Twitter account in Settingsâ, after pressing OK i can post as usual.
- Iâm assuming this is a bug, but is it an iOS bug? or a Twitter bug? or are we just NOT supposed to use âSLComposeViewControllerâ for twitter anymore?
UIActivityViewController
Facebook App not installed â> Facebook doesnât appear as a sharing option
Twitter App not installed â> Twitter doesnât appear as a sharing option
Facebook App installed â> Facebook app appears as a sharing option, pressing it shows the facebook sharing view.
Twitter App installed â> Twitter app is shown as a sharing option, but the following message is shown when selected, âNo Twitter Accountâ âThere are no Twitter accounts configured. You can add or create a Twitter account in Settingsâ, after pressing OK i can post as usual.
- This seems to be the same bug as with the âSLComposeViewControllerâ but we have no control over this since apps that can âshareâ are shown automatically.
Iâll appreciate if someone from Twitter, or an user with knowledge about this could clarify these points for me.