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
3
votes
0 answers

How to show a tweet popup in Android (like in iOS using SLComposeViewController)

Coming from an iOS background, I am trying to understand how to show a simple prefilled Twitter popup in Android to the user. With iOS/Swift, I would simply do the following: if let vc = SLComposeViewController(forServiceType: SLServiceTypeTwitter)…
Rob
  • 4,123
  • 3
  • 33
  • 53
3
votes
1 answer

How to share a Note including Markup with Share Extensions Swift

I've already figured out how to share the general content of a Note (text and pictures). But the way I currently approach the problem the markup of the note is not kept (Titles, Lists, etc.). I just receive the pure text of the note. When you share…
Christoph
  • 702
  • 6
  • 16
3
votes
2 answers

Pass Viewcontroller as Parameter

I am making a class for sharing. This class will be used many times in my project. So I have defined many methods there with a parameter that specify refrence UIViewcontroller on which i want to present something like SLComposeViewController. I just…
ankit
  • 3,537
  • 1
  • 16
  • 32
3
votes
2 answers

Posting to Twitter using SLComposeViewController not working on iOS 8 devices

I use the following code to post to Twitter. SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [tweetSheet setInitialText:@"Sample post string"]; [self…
Arun KP
  • 111
  • 2
  • 7
3
votes
1 answer

SLComposeViewController appears slowly

SLComposeViewController takes 3-4 seconds to appear after presenting it. But presentViewController:(UIViewController *) animated:(BOOL) completion:^(void)completion methods completion block gets called immediately. So even if I use a loading…
mkeremkeskin
  • 644
  • 10
  • 27
3
votes
0 answers

Bug with sharing via SLComposerSheet

So i use SLComposerSheet in my project for share text and image into Facebook. Today 27 April after update facebook application i have interesting problem, method setInitialText doesn't work!. I determined that if i deleted fecebook app from iPhone,…
Genevios
  • 1,115
  • 1
  • 16
  • 29
3
votes
2 answers

SLComposeViewController for Twitter now crashing in iOS 8.3

I have a Tweetsheet share option in my app. Just updated to iOS8.3 and now SLComposeViewController is throwing an error when I try to present the Tweetsheet: "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:…
3
votes
1 answer

SLComposeViewController closes automatically while sharing on Facebook in iOS 8

I am using SLComposeViewController for sharing in Twitter and Facebook in my app. It is working fine for Twitter but for Facebook, SLComposeViewController closes automatically on selecting location. This is an iOS 8 issue. Working fine on iOS7. if…
monicak
  • 41
  • 6
3
votes
1 answer

iOS - Twitter post callback with SLComposeViewController

Our app has sharing options with Twitter that was implemented with third party libraries and I'm trying to re-implement them. Before, we used MGTwitterEngine, SA_OAuthTwitterController and REComposeViewController to link and post message to Twitter.…
HMHero
  • 2,333
  • 19
  • 11
3
votes
1 answer

Will SLComposeViewController cause crash if SLServiceTypeFacebook used in country that doesn't support facebook?

I'm using SLComposeViewController to present a very simple share to facebook prompt on the system level. I want the device to handle login via the settings if they are not logged in, so I leave off the check +isAvailableForServiceType and just go…
3
votes
1 answer

Posting score to facebook

I created an app in SpriteKit with xcode where when the game is over, it shows you your score, and I want to add the feature to post your score to facebook. Pretty much all my code is in MyScene.m where it can't access presentViewController. Only my…
user3386154
  • 99
  • 1
  • 10
3
votes
0 answers

How to add a Facebook @friend with SLComposeViewController

I am using SLComposeViewController to compose a text to share on Facebook. I would like to automatically add my company name (similar to @ while in Facebook.). So it would look like: ".... @company" and the @company would be a link to the Facebook…
eric f.
  • 906
  • 2
  • 9
  • 17
3
votes
1 answer

How to post on twitter by hiding SLComposeViewController *tweetSheettweet instance

My app needs to support iOS 5. I have my custom UI where user can enter tweet message and when he presses post button, It should post message twitter. I have already written code for posting via SLComposeViewController *tweetSheet instance but in…
bhavya kothari
  • 7,484
  • 4
  • 27
  • 53
3
votes
0 answers

Twitter link using 31 characters instead of 20 using SLComposeViewController in xCode

I don't know why I seem to be the only one with this problem, but: I create an SLComposeViewController for my iPhone application, display it, everything works great. SLComposeViewController *mySLComposerSheet = [SLComposeViewController…
3
votes
1 answer

Inaccurate character counts with SLComposeViewController (twitter) and TWTweetComposeViewController

I'm presenting iOS Twitter share sheets (SLComposeViewController on iOS 6, TWTweetComposeViewController on iOS 5) in my app with user-selected text and a link. If the text is too long, I truncate it: NSString *text = [self…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
1 2
3
13 14