Facebook的帖子功能似乎不起作用

时间:2015-05-28 20:55:36

标签: ios objective-c

我已在我的应用中实施了Facebook帖子功能,您可以在Facebook上发布您所在位置的坐标。它在iOS模拟器中运行良好,但是当我在真实设备(iPhone 5S)上尝试它时,后框是空的,后按钮是灰色的。有什么想法吗?

这是我的代码:

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];

1 个答案:

答案 0 :(得分:-1)

尝试在iPhone上的“设置应用”中登录Facebook

相关问题