我正在创建 FBSDKShareLinkContent 对象并将其输入 FBSDKShareDialog。我正在尝试将对话框的默认消息设置为“我的高分是 %d!”。共享本身正在工作,默认情况下有一条空消息。有人可以帮忙吗?
谢谢你!
编辑:这是我的一段代码:
FBSDKShareLinkContent* content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString: @"https://itunes.apple.com/us/app/cylinder-game"];
content.contentTitle = @"Cylinder Game";
content.contentDescription = @"Cylinder Game is endless, rhythm based game with super addictive gameplay";
FBSDKShareDialog* dialog = [[FBSDKShareDialog alloc] init];
[dialog setMode:FBSDKShareDialogModeAutomatic];
[dialog setShareContent:content];
[dialog setDelegate:self];
[dialog setFromViewController:UnityGetGLViewController()];