当用户完成创建帖子后,FBSDKShareDialog返回到您的应用程序时,回调方法是什么?
这是我用来创建对话框的代码:
-(IBAction)post:(id)sender{
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:self.spinShareURL];
content.contentDescription=@"#spin";
self.fromFacebook = true;
[FBSDKShareDialog showFromViewController:self withContent:content delegate:nil];
}
我看到有人提到了回调函数。
-(void)dialogDidComplete:(FBSDKShareDialog *)dialog{
}
但是这对我没有用。
FBSDKSharingDelegate
上完成,而不是在FBSDKShareDialog
上完成,您可以在此处放置nil
:https://developers.facebook.com/docs/reference/ios/current/protocol/FBSDKSharingDelegate/ - Larme