I have in my app a facebook share button, a tweet button. My app supports to IOS 5.1.
So for twitter there is no problem. But how should I work with the facebook share button.
If the IOS device that is running the app is using IOS6 I want to use the new way, like you can see over here
But when the app is running on previous IOS devices. I want to use the old fashion way.
Can anybody help me?
Kind regards
If you’re wondering if
SLComposeViewControllersupports Facebook, checkisAvailableForServiceType, e.g.It’s generally better to use API (or
classorNSClassFromStringfor weakly linked classes, orrespondsToSelector, if a class has methods that were added in later versions of iOS) rather than checking for version of iOS. For more information, see Supporting Multiple Versions of iOS section of the iOS App Programming Guide.