我正在创建 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()];
最佳答案
无法使用 SDK 提供的共享对话框设置默认消息。它也被视为预填充,并且违反 Facebook 平台政策,请参阅第 2.3 节 https://developers.facebook.com/policy
关于iOS:FBSDKShareDialog 自定义消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29349060/