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

Does app contain, display, access third party content ( app store review)

So I programmed in the SLComposeViewController for Social Framework to add a FB share button. From Google I found the Facebook logo that I used as a UIImage to place on top of the FB share button. When the user clicks on the FB share button there's…
2
votes
0 answers

Completion handler in SLComposeViewController returns 1 regardless of user action

I'm using some fairly standard code to post to Facebook using the Social Framework. Running on my 6+, the code works as expected, and I can either cancel a post, or successfully post to my Facebook wall. Problem: The completion handler should give…
2
votes
0 answers

SLComposeViewController on iOS6, trying to send image but the send button can not be enabled

I'm trying to post image and text to twitter. On iOS7,8 the following code works well. but only on iOS6, send button is disable. When I try to send only text, send button become enable. Only when I try to send image, send button is disable. I have…
2
votes
1 answer

SLComposeViewController is not working in iPhone 6

I am facing one issue, in 64 bit architecture iOS device the sharing feature (Twitter and Facebook) is not working, when same code I am running in 32 Bit architecture iOS device its working fine. I have changed the architecture also as armv7 armv7s…
Piyush
  • 580
  • 1
  • 5
  • 23
2
votes
0 answers

SLComposeViewController get the user that made the tweet and the message tweeted

I really want to use the iOS social framework and SLComposeViewController to tweet from my app but I need the twitter handle of the user tweeting and the tweet text on the completion (without me fetching latest tweets from all of users twitter…
budiDino
  • 13,044
  • 8
  • 95
  • 91
2
votes
0 answers

SLComposeViewController in upside down orientation

My iOS application should run in portrait and upside down mode. In a view controller, I've defined an IBAction that launch SLComposeViewController in this way -(IBAction) shareOnFacebook { if ([SLComposeViewController…
j_freyre
  • 4,623
  • 2
  • 30
  • 47
2
votes
1 answer

SLComposeViewController "Facebook not available"

I'm using the code snippet which was posted on my previous question, Simple way to add Facebook/Twitter share to app? if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController…
Phil
  • 2,995
  • 6
  • 40
  • 67
2
votes
1 answer

Get Twitter details from selected account SLComposeViewController

I can get twitter details Using ACAccountStore but my question is using SLComposeViewController. when i want to share my tweet along with it i want to get twitter id and profile image url. i have multiple accounts and on selecting one i…
the1pawan
  • 1,194
  • 9
  • 26
2
votes
1 answer

Is Twitter sharing broken under iOS 7? (Example project attached.)

Example project: http://cl.ly/261z1P100T25 Under iOS 7, when I try to add a URL to a tweet, the method should return NO if there's no enough space to add it ("This method returns NO if url does not fit in the currently available character space")…
user2005643
2
votes
0 answers

How can i create a facebook post in my app that looks alike a YouTube post

You know when you share a video from youtube to facebook, on facebook the post appears like this: How can I achieve the same result when I share a video link from my app? I was able to share a post with text and image as a link (the text on top of…
T.D
  • 177
  • 2
  • 10
2
votes
1 answer

iOS SLComposeViewController "Hack"

I am currently creating a SLComposeViewController using the following code... - (IBAction)compose:(id)sender { if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { SLComposeViewController…
2
votes
0 answers

Display Cancelled/Successful Alert using iOS 6 Social Framework

I am trying to perform the simple task of displaying a cancelled or successful alert that depends on whether or not a user has posted or cancelled a share. I am using the iOS 6 sharing capability as outlined below: NSArray *activityItems =…
Brandon
  • 2,163
  • 6
  • 40
  • 64
2
votes
1 answer

getting the UITextView from SLComposeViewController when using SLServiceTypeFacebook

I am trying to get the UITextView of SLComposeViewController, how do I get it? I tried the following but it doesn't work: [viewController presentViewController:facebookController animated:YES completion:^{ for…
adit
  • 32,574
  • 72
  • 229
  • 373
2
votes
0 answers

SLComposeViewController returning null (ShareKit)

My SLComposeViewController is returning null whenever I try to call composeViewControllerForServiceType:serviceType on it. I can allocate it like: SLComposeViewController *test = [[SLComposeViewController alloc] init]; and I'll get…
oskare
  • 1,061
  • 13
  • 24
2
votes
1 answer

Display Facebook Compose View after Twitter Compose View on iOS

I have an app where the user can choose to share an update with people via Twitter and Facebook, if they wish to share via both then things are tricky. If you try and call their SLComposeViewController one after the other only Twitter appears and…