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
6
votes
1 answer

Sharing UIImage to UIActivityViewController Twitter/Facebook very slow to show dialog

I have an image I took from the camera and saved to the /tmp folder. When I add this image to the activityItems of an UIActivityViewController, and then press to share with either Twitter or Facebook, I have to wait up to 20 seconds for the share…
Jason
  • 2,223
  • 2
  • 20
  • 28
6
votes
1 answer

IOS7 - SLComposeViewController - Error posting to Twitter - cannot send tweet - connection failed

I'm trying to implement a twitter post using IOS7 SLComposeViewController and I get the following error - The Tweet "blah blah" cannot be sent because the connection to twitter failed. I am including image and URL in my tweet - if that makes any…
Dancer
  • 17,035
  • 38
  • 129
  • 206
5
votes
0 answers

SLComposeViewController always returns true if facebook app is installed on device

I am using SLComposeViewController for facebook sharing, everything is working fine except if i logged out from facebook app from device and then call SLComposeViewController isAvailableForServiceType: Facebook, it returns true and facebook post…
Bharat Modi
  • 4,158
  • 2
  • 16
  • 27
5
votes
1 answer

Why SLComposeViewController doesn't have delegate?

Say you want to do something once user finish. What do you do? It doesn't have a delegate. What to do once a present view controller is dismissed?
user4951
  • 32,206
  • 53
  • 172
  • 282
5
votes
2 answers

SLComposeViewController Views sent to back in app and becomes unresponsive

I have a button in my app to bring up an SLComposeViewController for use with Twitter. When the view is presented it animates in correctly and the disappears. I have found that when it disappears it is sent to the back of the current view and I have…
SamRowley
  • 3,435
  • 7
  • 48
  • 77
5
votes
1 answer

SLComposeViewController with screenshot but not image attachment

I notice that Mobile Safari's Twitter and Facebook share adds a screenshot of the current page without actually sharing it, eg: Im trying to duplicate this via SLComposeViewController, however calling the addImage: actually adds the UIImage to the…
4
votes
2 answers

Cannot share both image and text on Twitter using SLComposeViewController

I'm simply doing so: if let vc = SLComposeViewController(forServiceType: SLServiceTypeTwitter) { vc.setInitialText("Tweet text") vc.add(image) present(vc, animated: true) } I've done this in my app for a long time now and it used to…
Rob
  • 15,732
  • 22
  • 69
  • 107
4
votes
2 answers

Crash on [SLComposeViewController initWithExtension:requestedServiceType:]_block_invoke + 84

I'am getting some crashes on SLComposeViewController Crashed: com.apple.extension.global-state-queue 0 libobjc.A.dylib 0x18167cbb4 objc_loadWeakRetained + 156 1 libobjc.A.dylib 0x18167cd64 objc_copyWeak + 24 2 Social…
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
4
votes
1 answer

SLComposeViewController Incorrect Result

I'm trying to use SLComposeViewController to share a post to Facebook in an iOS app. However, if I hit cancel on the post, a result of "Done" is returned to the completion handler instead of "Cancelled". When I hit post, it dismisses and just…
4
votes
2 answers

When SLComposeViewController loads, it rotates to the device orientation even when I have fixed the Main UIViewController to Portrait

I'm developing a Universal app in iOS8.1. I would like the app to always appear in Portrait Orientation. I have forced it by adding the following code. This is working. In AppDelegate: func application(application: UIApplication,…
4
votes
3 answers

Posting via SLComposeViewController on facebook and twitter in IOS-8

I have tried to post on facebook and twitter using SLComposeViewController. my code is -(void)postToFacebookWithObject:(id)object FromController:(UIViewController*)vc { if ([SLComposeViewController…
4
votes
2 answers

IOS7 - SLComposeViewController - Include links / Images?

I'm building an IOS7 Native app on behalf of a client - its for Fitness Instructors. The brief requests that the clients can socially share progress updates - which include a link to the instructors site to help promotion, for example - 'Joe ran…
Dancer
  • 17,035
  • 38
  • 129
  • 206
4
votes
1 answer

How to get user info from twitter in ios 6?

I'm trying to integrate Ios 6 and twitter to send a tweet using slcomposeviewcontroller, but I cannot figure out how to get user info from twitter account. Can anybody help me?
user991278
4
votes
2 answers

How to make the presentViewController with SLComposeViewController faster?

I am opening the Twitter compose view on my app, but the screen takes too long to be displayed! I started using the following code when the user taps the twitter button: if([SLComposeViewController…
Roberto Ferraz
  • 2,511
  • 24
  • 43
3
votes
1 answer

How to share a post from my app to twitter iOS

I basically want the user to share something from my app to twitter. I was exploring the different methods possible and found SLComposeViewController but it is deprecated. Support for twitterKit has also been officially stopped by twitter. One…
1
2
3
13 14