I've implemented a Facebook post function in my app, where you can post the coordinates of your location on Facebook. It works fine in the iOS simulator, but when I try it on a real device (iPhone 5S) the post-box is empty and the post button is greyed out. Any ideas?
Here's my code:
SLComposeViewController *controllerFB = [[SLComposeViewController alloc] init];
controllerFB = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
NSString *theLocation = [NSString stringWithFormat:@"%f,%f", self.locationManager.location.coordinate.latitude, self.locationManager.location.coordinate.longitude];
[controllerFB setInitialText: theLocation];
[self presentViewController:controllerFB animated:YES completion:NULL];