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
1
vote
0 answers

FBSDKShare not work in ios 9

I use FBSDKShare to share image to Facebook.The code work well in iOS 8, but not iOS 9.Recently I use Xcode Version 7.0 (7A220) to recompile my code.I know there has some difference between iOS version.I have read the Facebook document and did…
tbago
  • 660
  • 1
  • 6
  • 19
1
vote
4 answers

Attempt to present a view controller from another class

I'm developing an application that allow the user to share through Facebook,Twitter and Email. For this social networks I have created a separated class that contains this code: -(void)Facebooksharing { SLComposeViewController *facebook =…
1
vote
1 answer

Twitter share not working on device

My twitter share is working on the simulator, but not on the device(iPhone 6). if SLComposeViewController.isAvailableForServiceType(SLServiceTypeTwitter){ let url = self.articles?[indexPath.row]["article_url"].string! let targetURL =…
serdar aylanc
  • 1,307
  • 2
  • 20
  • 37
1
vote
1 answer

SLComposecontroller does not disable post button for long messages

I used SLComposerController, but it is not disabling the post button when the character count exceeds 140 character . I want to post an URL ,image and initial text on Twitter via my iOS application. How to do this?
shweta
  • 11
  • 4
1
vote
0 answers

Make keyboard disappear in SLComposeViewController?

I have been trying to make it so that when the the screen of the SLComposeViewController is tapped (such as when the background is tapped), the keyboard disappears. There are several tutorials on how to do this with a regular UIViewController and…
gravelit
  • 35
  • 5
1
vote
0 answers

Use SLComposeViewController to send message with Facebook messenger

I want to launch a Share extension of Facebook Messenger from my app so a user could easily send a message to one of his friend using the share extension. To my understanding it's done with SLComposeViewController where in the service name I give…
user958880
  • 487
  • 1
  • 7
  • 18
1
vote
1 answer

SLComposeViewController : Does it handle FaceBook API Upgrade commencing on may 2015?

Facebook api is upgraded. Hence v2.x api calls are no more valid from april 30th 2015. I'm using SLComposeViewController in my app. Does this changes by Facebook will affect my app? Is it safe to continue using SLComposeViewController? Please do…
1
vote
2 answers

UIViewControllerHierarchyInconsistency when presenting view controller

I have such View Controller's structure as: UINavigationController(root view controller)->UIViewController. In my UIViewController I have UITableView with dynamic cells. In every cell there is "share" button which presents fullscreen UIWindow. This…
1
vote
1 answer

__weak SLComposeViewController cause crash in IOS 8

I have a problem with SLComposeViewController in IOS 8. I want to show Facebook sharing window and after it's done - show Twitter sharing window. That's why I need to use completion blocks and to avoid retain cycles I have to use __weak…
1
vote
0 answers

SLComposeViewController error => LaunchServices: invalidationHandler called

I'm integrating social sharing in my SpriteKit game (iOS 8 + Swift). Everything is working correctly, but I get the following error: "LaunchServices: invalidationHandler called". Any idea how to fix the error? This is my code: func…
rv123
  • 476
  • 1
  • 3
  • 14
1
vote
2 answers

SLComposeViewController get crash in ios8

SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; controller.view.hidden = YES; [self presentViewController:controller animated:NO completion:^{ …
NANNAV
  • 4,875
  • 4
  • 32
  • 50
1
vote
0 answers

How to use NSAttributedString on SLComposeViewController

I am developing an iOS application in which there is feature to send attributed text over facbook. I tried to pass attribute text or using subviews methods to SLComposeViewController's view but it won't helpful. I have reference application in which…
1
vote
2 answers

: CGImageCreate: invalid image size: 0 x 0

Before give duplicate mark read my whole question: I know might be there is many question related to my title but issue is different. I am using Mac OS X 10.9.3 and Xcode 5.1.1. In my app I just want to share image, URL link and some description…
iPatel
  • 46,010
  • 16
  • 115
  • 137
1
vote
0 answers

Post image into a specific album of facebook using SLComposeViewController

I'm using the following code to post image on Facebook -(void) facebookShare: (id) sender { if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController *facebookSheet =…
1
vote
1 answer

How to present a SLCompose view controller from NSObject Class

Here is my code : if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { SLComposeViewController *viewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; //Tell him with…
Utkarsh 786
  • 37
  • 1
  • 5