如何在swift iOS中与facebook分享图片+文字?

我正在写iOS版的 Swift语言的Facebook交互代码。 我已经转换login和其他代码,但坚持共享方法。

我无法在swift中findFBRequest类的requestWithGraphPath方法。 如果有人知道这件事,请在这里帮助我。 我在网上search解决scheme,但没有find。

这是我在Objective-C中的共享代码

  FBRequest *req=[FBRequest requestWithGraphPath:@"me/feed" parameters:params HTTPMethod:@"POST"]; [req startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error{ if (!error) { // Sucess! Include your code to handle the results here NSLog(@"Successful sharing"); } else { // An error occurred, we need to handle the error // See: https://developers.facebook.com/docs/ios/errors NSLog(@"Error while sharing data"); } }]; 

先谢谢你。