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
3
votes
0 answers

iOS SLComposeViewController : I can not post an image as PNG format

When I post a png image to Twitter by using SLComposeViewController, the posted image is converted to JPEG image automatically. As a result of that, the image quality is degraded. Do you know how to post a PNG format. Any help will be gratefully…
zono
  • 8,366
  • 21
  • 75
  • 113
3
votes
1 answer

108 Characters in SLComposeViewController

How come when you are using SLComposeViewController on iOS you only get 108 characters for your tweet instead of the usual 140? Shown in the screenshot below... I am creating this SLComposeViewController using the following code... -…
Dummy Code
  • 1,858
  • 4
  • 19
  • 38
3
votes
1 answer

Get "Cannot Post To Facebook" with iOS SDK when using test account

When attempting to post using a Facebook generated test account from the app using the iOS 6 ,UIActivityViewController or SLComposeViewController I get the error popup message "Cannot Post To Facebook - The post cannot be sent because the connection…
3
votes
0 answers

Get the user submitted post / tweet using SLComposeViewController

Is there a way to get the user submitted comments upon posting to facebook / twitter when using SLComposeViewController? It seems the completion handler only allows access to the completion statuses 'SLComposeViewControllerResultDone' or…
capikaw
  • 12,232
  • 2
  • 43
  • 46
3
votes
3 answers

Unable to post image into facebook using SLComposeViewController?

I would like to post image into facebook and twitter. I am fine with twitter but not with facebook using SLComposeViewController class. With out add image i am able to post text and url into facebook. The problem is when i use add image i was unable…
Prasad G
  • 6,702
  • 7
  • 42
  • 65
3
votes
1 answer

SLComposeViewController on Twitter: how to detect duplicate post

I'm using Social Framework on iOS 6 for Twitter integration, using the following code : SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; controller.completionHandler =…
zov
  • 4,092
  • 1
  • 16
  • 19
2
votes
2 answers

SLComposeServiceViewController height issue

My Share extension's view height seems to be rendered smaller than needed to accommodate the SLComposeSheetConfigurationItem. as you can see in attachment, it seems to be cut off from the bottom ("to: test@email.com") and I have to scroll it to see…
Kashif
  • 4,642
  • 7
  • 44
  • 97
2
votes
1 answer

iOS Facebook Share with Link, Photo and Description in the same share dialog

After the iOS 11 relase, the SLComposeViewController is depraceted/not allowed sharing. So iOS developers have to use native Facebook and Twitter SDK to share content. And my problems is raising from this point. I have been developing a new app…
2
votes
0 answers

Accessing preview image of SLComposeServiceViewController

Has anyone had any luck capturing the image preview, a screenshot of the website, that apple presents in the its share extension for safari webpages, without having to simply replicate the functionality?
user2228503
  • 77
  • 1
  • 1
  • 12
2
votes
0 answers

Cannot share content to Facebook page's timeline using SLComposeViewController

When sharing content to Facebook from app using iOS's Social Framework, the share dialog (SLComposeViewController) only allows us to share to MyTimeline/Friends/Group. There is not an option to share to the user's page/business. Is there any way to…
badhanganesh
  • 3,427
  • 3
  • 18
  • 39
2
votes
0 answers

Swift SLComposeServiceViewController loads forever even after every information is already there

So, I have a problem with SLComposeServiceViewController: Even after the presentationAnimationDidFinish method was called and I already have all the information I need, the thing keeps downloading and I keep getting this kind of messages on the…
unixb0y
  • 979
  • 1
  • 10
  • 39
2
votes
0 answers

Set StatusBar Color for Extensions in UIActivityViewController

Following situation given: iOS 8+ App (mainly Swift). StatusBar is set to View controller-based status bar appearance. Within the App multiple UIActivityViewControllers are used to display sharing options. The Problem: Some sharing activities have…
2
votes
3 answers

how to share content on facebook, twitter and instagram using SLComposeViewController swift

i want to share content and images on social media using SLComposeViewController in swift. i have also done it in objC but i am new in swift development.please suggest me if there is any common class for this or Any library to share content on…
Vvk
  • 4,031
  • 29
  • 51
2
votes
1 answer

Posting to Facebook issue using SLComposeViewController

When i try to post to facebook within my app I get the error: Please Log In You need to be logged into the Facebook app to share this photo. I am logged into the Facebook app as well as being logged in through the settings. I have tested posting on…
Andrew
  • 391
  • 3
  • 15
2
votes
0 answers

SLComposeViewController taking long time to present the view

I am trying to present SLComposerViewController with service type Twitter. It is taking 5 to 6 second to present the twitter composer view. Once it presented, next time onwards the delay to present twitter view reducing gradually. Here is my code…
Augustine P A
  • 5,008
  • 3
  • 35
  • 39