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
2
votes
2 answers

Can we share Video on FB using SLComposeViewController?

I have used SLComposeViewController to share image and url's as follows: SLComposeViewController *fbComposer = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; if([SLComposeViewController…
2
votes
1 answer

How to display iOS 6 Facebook alert view without first showing SLComposeViewController

In iOS 6, when you create an SLComposeViewController and show it with presentViewController and you have not called isAvailableForServiceType first, you will get the "No Facebook Account" alert view which gives the user an opportunity to set up…
1
vote
0 answers

Missing Image when using SLComposeViewController with Twitter on real device

My code implementation is really straightforward: if SLComposeViewController.isAvailable(forServiceType: SLServiceTypeTwitter) { guard let composeViewController = SLComposeViewController(forServiceType: SLServiceTypeTwitter) else { …
1
vote
1 answer

How to detect user successfully shared to Facebook with SLComposeViewController

I created a button in the app to share a status on Facebook with SLComposeViewController. How do I check whether the user really do click to share the status? My code as below: @IBAction func fbBtn(_ sender: Any) { if…
hatched
  • 795
  • 2
  • 9
  • 34
1
vote
1 answer

Display an UIAlertController from my share extension ShareViewController

I'm currently developing my first share extension in swift 3. This is actually a very simple extension which share a text or an url directly from Safari (by selecting the text or the url from the web page content) I'd like to display an…
1
vote
0 answers

Is it possible to be notified of SLComposeViewController text changes

I've got a few SLComposeViewControllers in a feature in our app, and we are trying to add analytics to this feature. What we are trying to do is track if a user changed the text inside of the SLComposeViewController before hitting the "post" button.…
Bill L
  • 2,576
  • 4
  • 28
  • 55
1
vote
1 answer

I can't share a content from my iOS app to the Facebook when Facebook app is installed

if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { imageUser.hidden=NO; // [imageUser sendSubviewToBack:_horizontalScrollView]; SLComposeViewController *controller =…
Alex
  • 538
  • 3
  • 18
1
vote
1 answer

Share on facebook when app is not configured

I want post something on Facebook. I have used SLComposeViewController for that. I just want to ask how can i share if user hasn't configured its app in phone. Is there any way that I open it in browser and then post anything. Consider I want to…
user6299410
1
vote
0 answers

Login with facebook Using ACAccountStore is not working in ios 9.2.1

Here is my code to login with facebook : if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { ACAccountStore *accountStore = [[ACAccountStore alloc] init]; ACAccountType *accountType =…
1
vote
1 answer

Can't display UIAlert from SLComposeViewController

I'm using a Share Extension to upload an article object to Firebase. That works fine, but I can't get the Success Alert to show up without getting a "modifying autolayout engine from background thread" error. Gist
1
vote
0 answers

Incorrect SLComposeViewControllerResult while sharing on facebook using iOS SocialFramework

I am using Social framework for sharing from my iOS application and testing my iOS application on iOS9. When I click on share button it opens native facebook application ViewController as shown in following image. The problem is that irrespective…
VIjay J
  • 736
  • 7
  • 14
1
vote
1 answer

Can not Hide Keyboard with SLComposeServiceViewController

My Share Extension doesn't require any user input aside from configuration in a table view so I am trying to hide the keyboard when the view is presented in Safari. I'm able to run my code in the simulator fine but when I test on my device, I'm the…
1
vote
1 answer

An issue with SLComposeViewController sharing text appear blank ios9

i am using SLComposeViewController for sharing on facebook and twitter. when i perform action then open dialog box but there are no any text is appear in dialog box.
Vvk
  • 4,031
  • 29
  • 51
1
vote
1 answer

SLComposeViewController issue in iOS9

I want to share image,url and text to facebook and I am not able to make it work on iOS9.Here is my code. -(IBAction)shareOnFacebook:(id)sender{ UIButton *btn = (UIButton *)sender; if ([SLComposeViewController…
Sekhar
  • 341
  • 2
  • 13
1
vote
1 answer

Launch device twitter settings from objective-c iOS 9

How can i launch the twitter settings on the Device from my app with objective-c? I am working on an app that shares a link on twitter, i am using the SLComposeViewController and it works, but when the Twitter app is not installed and no Twitter…
Alex
  • 11
  • 5