Questions tagged [slcomposeviewcontroller]

The SLComposeViewController is a class in the [Social-Framework] (new in iOS 6) that presents a view to the user to compose a post for supported social networking services.

The SLComposeViewController is a class in the (new in iOS 6) that presents a view to the user to compose a post for supported social networking services.

SLComposeViewController uses the isAvailableForServiceType: class to check if an account is available for the specified service type before the controller is presented.

Supported service types include:

  • SLServiceTypeFacebook
  • SLServiceTypeSinaWeibo
  • SLServiceTypeTwitter
196 questions
0
votes
1 answer

ios: Tweeting with SLComposeViewController saves tweet to Draft if Twitter app installed

I have an app using SLComposeViewController to post tweets. It works fine if Twitter app is not installed on my device (iOS 9.3.2). But if it's installed, my app says, tweet was posted. And when I open Twitter app is says: "Tweet failed to send Your…
zxcat
  • 2,054
  • 3
  • 26
  • 40
0
votes
1 answer

I was wondering if it's possible to pass text from an UITextField to SLComposeViewController?

I was wondering if it's possible to pass text from an UITextField to the SLComposeViewController? If so that would be nice! essentially I am trying to let the user input his/hers input into the text field and pass the data (text) to the social…
0
votes
0 answers

Twitter sharing, SLComposeViewController

Having set up a Twitter sharing function in an iOS app, I have a question. Here is the code, it is based on what I have found, browsing the net: func shareImageOnTwitter() { if…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

SLComposeViewController: Different behavior of "No Twitter Accounts" alert depending on whether or not Twitter app is installed

I use the following code for Twitter sharing in my app: SLComposeViewController *twitter = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [twitter setInitialText:@"some text"]; twitter.completionHandler =…
Flo
  • 2,309
  • 20
  • 27
0
votes
1 answer

White button SLComposeViewController

I am using SLComposeViewController to post tweets from within my app. However, the 'Cancel' and 'Post' buttons seem to be white and I cannot find a way to change them back to the default blue. Does anyone have any suggestions?
jjc99
  • 3,559
  • 4
  • 22
  • 21
0
votes
0 answers

SLComposeViewController twitter preview image not loading properly

My website serves blank pages to "social" urls i.e. urls that start with "/social" as a path and originally generated by my app to share on FB and Twitter. Those served pages only include open graph and twitter meta tags in their head and a few…
ALTN
  • 659
  • 9
  • 26
0
votes
1 answer

iOS - Can't share images to Facebook anymore?

This doesn't work anymore to share images. The image is not displayed in the FB popup window, nor does it gent sent to FB. The image is valid and the same code works for Twitter. Is there some new workaround to be able to share images to Facebook?…
soleil
  • 12,133
  • 33
  • 112
  • 183
0
votes
1 answer

Customize Cursor Position in SLComposeViewController textview

I want to change cursor position in textview of SLComposeViewController to beginning of UITextView currently is show me the end of initial Text: Currently Cursor but I want cursor at first position in UITextView. with (iOS 9 support) I also use…
Nirav Hathi
  • 1,507
  • 3
  • 12
  • 20
0
votes
1 answer

iOS 8 Facebook share link, image and text

I want to share a content with an image, an url of my app on store and a caption of image. I tried to using SLComposeViewController, but it not working on iOS 8. I tried to using FaceBook share link, but it need an image url. How can I share image +…
eric long
  • 640
  • 5
  • 16
0
votes
0 answers

How to share on Facebook

The code: let shareFB : SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook) shareFB.setInitialText("test") self.presentViewController(shareFB, animated: true, completion: nil) works great in the simulator but…
JonP
  • 67
  • 1
  • 8
0
votes
0 answers

Serious SLComposeViewController issue in iOS 9 with Facebook App installed

This just came up today because it looks like Apple activated the short links betweens apps. When creating a SLComposeViewController using SLServiceTypeFacebook and presenting it, right now a new bar appears at the bottom with two options "Write…
Petrescu Silviu
  • 247
  • 1
  • 11
0
votes
1 answer

SLComposeViewController completion handler not firing after Facebook post (works on cancel though)

I have a very peculiar problem that I have run into and so far it is happening on only one device (which happens to be the project manager's). I'm using a SLComposeViewController to post to a user's Facebook wall or to a user's Twitter feed. The…
Nick Kirsten
  • 1,187
  • 11
  • 27
0
votes
0 answers

App freezes after sending text to Facebook, using SLComposerViewController or UIActivityViewController if there is no internet connection

I have trouble when sharing a text to Facebook using SLComposerViewController or UIActivityViewController. When users press the done button the app freezes if there is no internet connection. It only happens with Facebook, other services are ok.…
0
votes
0 answers

IOS setInitialText method in SLComposeViewController iOS 8.3 does not show text in Facebook sheet

The Facebook sheet appears but contains no text. I am using XCode 6.3.1 and iOS 8.3 on an iPhone 6. Thank you in advance. My code is SLComposeViewController *controller = [SLComposeViewController…
0
votes
1 answer

Cannot post to Facebook via SLComposeViewController (Social Framework)

I am using SLComposeViewController for sharing in Facebook. While I didnt have Facebook installed on the device, the controller was coming up with texts pre filled as expected. After i installed Facebook, the setPreText is not showing. Moreover, I…
Saheb Roy
  • 5,899
  • 3
  • 23
  • 35