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

iOS Share Extension - handle screenshot data

I am trying to receive screenshot data from my Share Extension. I am running iOS 15.5. override func didSelectPost() { if let extensionItems = self.extensionContext?.inputItems as? [NSExtensionItem] { let attachments =…
0
votes
1 answer

About "SLComposeViewController" in iOS 13, Xcode 11 GM

In my project, I always use SLComposeViewController to share contents with third-party apps, but now, when I update my iPhone to iOS 13 GM, this no longer works. The SLComposeViewControllerCompletionHandler always callback…
Kosuke Ogawa
  • 7,383
  • 3
  • 31
  • 52
0
votes
1 answer

How to navigate Share Extension to host app in Swift?

How to navigate Share Extension to host app in Swift after getting URL from ShareExtension? import UIKit import Social import MobileCoreServices class ShareViewController: UIViewController { let sharedKey = "shareappKey" override func…
G Sreekanth
  • 21
  • 1
  • 9
0
votes
1 answer

How to launch SLComposeServiceViewController from another UIViewController

I have an iOS app with a Share Extension. The main class of the Share Extension inherits the SLComposeServiceViewController, and in the Storyboard, I have checked "Is initial view controller". However, I need another custom view to render with more…
Rasmus Puls
  • 3,009
  • 7
  • 21
  • 58
0
votes
1 answer

IOS/Objective-C: Dismiss view controller after SLComposer message

I am trying dismiss a view controller after the SLComposer sends a message. To do this, I'm using the completion block in the SLComposer method as follows: [myPostSheet setCompletionHandler:^(SLComposeViewControllerResult result) { …
user6631314
  • 1,751
  • 1
  • 13
  • 44
0
votes
0 answers

Social framework sharing not working with Twitter

I am facing one issue. When I'm trying to make post via Twitter with Social framework, and Twitter card is appears, I tap "Post", card disappears but in Twitter account this post not shows. let post = SLComposeViewController(forServiceType:…
0
votes
1 answer

How to ignore "Import with 'xxx' " in SLComposeViewController

I make a SLComposeViewController everything works fine until I want to share my Image, there's alot things to click including " import to whatsapp, import to Instagram " and etc. If I clicked on this my apps will stuck. So I want to exclude all…
StevenTan
  • 275
  • 1
  • 5
  • 20
0
votes
0 answers

unable to post pre-populate text into Facebook in Device using SLComposeViewController

if SLComposeViewController.isAvailableForServiceType(SLServiceTypeFacebook) { let facebookSheet:SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook) facebookSheet.setInitialText("You can…
Krunal Patel
  • 1,649
  • 1
  • 14
  • 22
0
votes
1 answer

SLComposeViewController doesn't attach image to twitter if image is larger than 100kb

I try to post image with text to twitter using following code: SLComposeViewController *tweetController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [tweetController setInitialText:@"Hello this is a tweet.…
0
votes
1 answer

App crash when I use the Branch framework

I use the Branch SDK for deep links to the iOS application. The problem appears in the following cases if you send a deep link to a third-party application (for example, Slack, Facebook) quickly, then an app crash occurs. The console shows the…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
0
votes
0 answers

How to share a link post to Facebook via the native share dialog?

I'm trying to let users share content on Facebook from my app: let composeSheet = SLComposeViewController(forServiceType: SLServiceTypeFacebook) composeSheet.setInitialText(message) composeSheet.addURL(NSURL(string:…
Prabhu
  • 12,995
  • 33
  • 127
  • 210
0
votes
1 answer

Objective c How to prevent SLComposeViewController to not to share post via Facebook app in iPhone

I am using SLComposeViewController to share a post on facebook including image and Url. Earlier it works fine when we provide account details in the iPhone settings/facebook. But now it is sharing post using the app installed on my iPhone. I want to…
iOS dev
  • 2,254
  • 6
  • 33
  • 56
0
votes
2 answers

Share extension working on simulator but not on device

I have a share-extension bounded with my app. I have all the required app-ids and provisioning-profiles related to the extension, for both development and distribution. When I run the extension in the simulator, it works perfectly fine. On device…
0
votes
0 answers

Make part of a string uneditable (swift)?

Hi my game has a post to Facebook button. I want the user to be able to post their highscore but not be able to change it but be able to type a message in with their post. How do i do this? the code i have so far is: @IBAction func…
user5740195
0
votes
3 answers

How do I display a variable and a words at once when posting a Highscore on Facebook (swift)?

Hi I making a basic game and I want to be able to post the users highscore on Facebook along with presets words so all the user has to do is click the post button. So basically all I need is "My highscore is xxx". i have it posting on Facebook but…
user5740195