title: Swift : Share text through Twitter
body: <p>So basically I am making an event app. Everything has been going smoothly but there's just sharing the event to twitter.</p>
  
  <p>I have searched the internet but all I am getting is using the native app of twitter which I don't want. I want to use the browser to tweet.</p>
  
  <p>I have implemented this method for FB sharing.</p>
  
  <p>Any idea would help me a lot.</p>
  
  <pre><code>let content = FBSDKShareLinkContent()
  
      content.contentURL=NSURL(string: "http://facebook.com")
      content.imageURL = NSURL(string: "http://facebook.com")
  
      content.contentTitle = "Shou 3emlin test app "
      content.contentDescription = "testing testing testing"
  
      let shareDialog = FBSDKShareDialog()
      shareDialog.fromViewController = self
      shareDialog.mode=FBSDKShareDialogMode.Browser
      shareDialog.shareContent = content
  
  
      if !shareDialog.canShow() {
          shareDialog.mode=FBSDKShareDialogMode.Native
          shareDialog.shareContent = content
      }
  
      if shareDialog.canShow() {
          shareDialog.show()
      }
  </code></pre>