【发布时间】:2020-06-09 06:48:29
【问题描述】:
我正在使用 branch.io 进行共享。当我分享 Facebook 时没有提供预览。同样在 Linkedin 和 Twitter 上工作
**let buo1 = BranchUniversalObject.init(canonicalIdentifier: "https://appName.app.link/(videoId)")
buo1.title = "#I am a magnet - watch this magnet video on appName."
//buo.contentDescription = "My Content Description"
buo1.imageUrl = imageUrl
buo1.publiclyIndex = true
buo1.locallyIndex = true
buo1.contentMetadata.customMetadata["key1"] = "value1"
let lp: BranchLinkProperties = BranchLinkProperties()
lp.channel = "whatsapp"
lp.channel = "Twitter"
lp.channel = "LinkedIn"
lp.channel = "instagram"
lp.channel = "Mail"
lp.channel = "Facebook"
lp.feature = "sharing"
lp.campaign = "content 123 launch"
lp.stage = "new user"
lp.tags = ["four", "five", "six"]
lp.addControlParam("$desktop_url", withValue: "https://appName.app.link/desktop")
lp.addControlParam("$ios_url", withValue: "https://appName.app.link/ios")
lp.addControlParam("$ipad_url", withValue: "https://appName.app.link/ios")
lp.addControlParam("$android_url", withValue: "https://appName.app.link/android")
lp.addControlParam("$match_duration", withValue: "2000")**
【问题讨论】: