Social framework sharing not working with Twitter

459 views Asked by At

I am facing one issue. When I'm trying to make post via Twitter with Social framework, and Twitter card is appears, I tap "Post", card disappears but in Twitter account this post not shows.

    let post = SLComposeViewController(forServiceType: SLServiceTypeTwitter)!
    post.title = "MyApp"
    post.setInitialText("\(title ?? "")\n\(description!)\n")
    post.add(url)
    post.add(image)
    post.completionHandler = { (result) in
        print(result)
    }

    self.present(post, animated: true, completion: nil)

About month ago all has been worked, and code hasn't been changed.

Message in output

SLRemoteComposeViewController: (this may be harmless) viewServiceDidTerminateWithError: Error Domain=_UIViewServiceErrorDomain Code=1 "(null)" UserInfo={Terminated=disconnect method}

Facebook by the way is working well

0

There are 0 answers