1

一切正常,但是它说“ios设备”,我希望它说出实际应用程序的名称。我究竟做错了什么?

这是我的代码:

- (IBAction)doFacebook:(id)sender{
//check to see if facebook account exists
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {

    // Create the view controller defined in the .h file

    fb=[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];

    // make the default string
    NSString *FBString= [NSString
                         stringWithFormat:@"%@\r via #GibberishGenerator", gibText.text];
    [fb setInitialText:FBString];
    // show the controller
    [self presentViewController:fb animated:YES completion:nil];

    }
}
4

1 回答 1

2

iOS 6 共享表

iOS 6 共享表是 Apple 的 Facebook 集成功能。

缺点

分享表中的帖子默认归属于 iOS;联系 Facebook 为您的应用正确配置归因

iOS 上的共享和分发

于 2013-08-18T09:46:55.260 回答