我正在创建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()];