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

How can i post on twitter without showing dialogue in ios?

I want to post my status on twitter. I want to add an image, but I dont want a share dialogue. Instead I'd like an interface like Instagram, where the user just selects twitter and presses 'share', so it's easy. Here is my running code so far: // …
Zeeshan Shaikh
  • 103
  • 1
  • 7
0
votes
1 answer

SLComposeViewController:SLServiceTypeFacebook not working

I am in front of the following problem, when trying to send a message using Facebook, from my iOS ap. I use this code as usual: SLComposeViewController *facebkController = [SLComposeViewController…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

SLComposeViewController to post image on facebook in ios7

Looks like SDK create "iOS Photo" by default Instead, How can i specify new Album creation as "XXXX" Once i successfully posted to [facebook] it's showing iOS album links to (http://www.apple.com/iOS) Instead, How can specify own link to album
shervin
  • 31
  • 1
0
votes
1 answer

How to retrieve the post URL for a Facebook or Twitter post using SLComposeViewController?

After sending a post to either Facebook or Twitter with SLComposeViewControllerResult, is it possible to get a URL of that post? Thanks
0
votes
1 answer

iphone Social framework, make text read only

Here is my code: SLComposeViewController*fvc = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [fvc setInitialText:string]; [fvc addImage:[UIImage…
iCodeXcode
  • 319
  • 1
  • 5
  • 11
0
votes
1 answer

iOS - Tweet Sheet not displayed - SLComposeViewControllerResultCancelled called automatically

I am using SLComposeViewController to send a tweet. I have all the necessary permissions from Twitter to send a tweet, however, when I present the tweet sheet it never shows. From debugging my code I can see that the SLComposeViewController's…
Brian Boyle
  • 2,849
  • 5
  • 27
  • 35
0
votes
1 answer

ios slcomposeviewcontroller with facebook - How can I get the posted image id?

I'm using slcomposeviewcontroller in my iOS app. When a user shares an image in my application to facebook using the slcomposeviewcontroller I'd like to get the id of the photo he created. I see that there's a handler called completionHandler but it…
vondip
  • 13,809
  • 27
  • 100
  • 156
0
votes
1 answer

Posting image to Facebook using SLComposeViewController

I have an app where I save the current view as an image using the following code: UIGraphicsBeginImageContext(self.view.bounds.size); [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; savedImg =…
Anish
  • 740
  • 4
  • 11
  • 27
0
votes
1 answer

Handle twitter error messages in iOS

I am using SLComposeViewController to share on twitter, whenever I share the same message twice in succession twitter shows me a error dialog stating that, the message is duplicate , see image below Their is no way to handle this message, I am not…
Ranjit
  • 4,576
  • 11
  • 62
  • 121
0
votes
0 answers

Xcode 5 Facebook post with Links immediately opens the link

I must be missing something obvious here... In the past, I've used the following code to post a message to Facebook from my app. The URL assigned via the addURL call in the past has shown up as the URL for the header of the post in Facebook. In…
Eric Rowe
  • 53
  • 1
  • 5
0
votes
1 answer

SLComposeViewController dismisses its parent VC

I am using SLComposeViewController to post on Twitter, all is working fine but when the post is successful it Dismisses the parent view controller also. -(void)showTweetSheet { // Create an instance of the Tweet Sheet SLComposeViewController…
0
votes
1 answer

Attaching JSON image to SLComposeViewController's tweetSheet (ios7)

I have a "share on twitter" button action in my app. I have a JSON image thats being parsed that I want to attach to the tweet. I'm having trouble accomplishing this. I tried converting the NSString to a UIImage but my code isn't working. Any…
ChrisBedoya
  • 737
  • 2
  • 15
  • 28
0
votes
1 answer

Displaying a formatted date inside the tweetSheets initialText (iOS7)

I want to give my user the option to "share" my apps detailed view page. Once the user clicks "tweet this" I want the initialText to include a date string ('release_date') that's being parsed with JSON. I'm having trouble displaying the date string…
ChrisBedoya
  • 737
  • 2
  • 15
  • 28
0
votes
1 answer

Value stored to 'mySLComposerSheet' is never used

I am having this issue with my code that I have tried hard to fix, but with no results. Here you can see the code I am talking about: .m SLComposeViewController *mySLComposerSheet; mySLComposerSheet = [[SLComposeViewController alloc]…
0
votes
1 answer

how to set text uneditable when posting on facebook using SLComposeViewController in iphone

I am integrating Facebook in my application using SLComposeViewController for iOS 6 and I am trying to do is text can not be edit before posting it on Facebook.Now,it is editable,I want to make it uneditable,how can I make the text uneditable?…