How to check if the user entered his facebook coordinates in the iphone parameter before composing SLComposeViewController in ios 6

advertisements

i want to show a alert message before composing SLComposeViewController in my App , how to check whether user entered his facebook details in iphone setting before composing SLComposeViewController in ios 6 .


if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]

Returns a Boolean value indicating whether the service is accessible and at least one account is set up.